home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / HyperBooks / War of the Worlds 1.0 < prev    next >
MacBinary  |  1994-04-21  |  552.5 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: War of the Worlds 1.0

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert PCP archive log (other/pcpArchiveLog) ext Unsupported
100% file MacBinary II, inited, Fri Jan 3 21:36:40 1992, modified Thu Apr 21 06:24:15 1994, creator HyperCard, type HyperCard stack, 540672 bytes "War of the Worlds 1.0" , at 0x84080 24935 bytes resource DOS executable ( block device driver) default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 57 61 72 20 6f 66 | 20 74 68 65 20 57 6f 72 |..War of| the Wor|
|00000010| 6c 64 73 20 31 2e 30 00 | 00 00 00 00 00 00 00 00 |lds 1.0.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 08 40 00 00 | 00 61 67 a5 8a ce 38 a9 |.....@..|.ag...8.|
|00000060| dc 04 cf 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8a bc 00 00 |........|........|
|00000080| 00 00 6e 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..n.STAK|........|
|00000090| 00 00 00 0a 00 08 40 00 | 00 00 6e 00 00 00 00 00 |......@.|..n.....|
|000000a0| 00 00 00 04 00 00 00 04 | 00 00 2f fd 00 00 01 c1 |........|../.....|
|000000b0| 00 00 0a 44 00 01 e0 91 | 00 00 00 03 00 00 2d a0 |...D....|......-.|
|000000c0| 00 00 2c 6b 00 00 00 00 | 00 05 00 00 10 00 00 00 |..,k....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 01 25 80 00 02 10 80 00 | 02 10 80 00 02 20 80 00 |.%......|..... ..|
|000000f0| de 7c 74 8b 00 00 00 04 | 00 30 00 10 01 70 02 10 |.|t.....|.0...p..|
|00000100| 00 00 00 00 02 70 03 40 | 00 00 00 00 00 00 00 00 |.....p.@|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 43 80 00 00 0b 4e | 01 40 02 00 00 00 00 00 |..C....N|.@......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 01 b8 60 00 00 17 80 | 00 01 eb 60 00 00 05 60 |...`....|...`...`|
|00000490| 00 08 2f 20 00 00 10 c0 | 00 00 00 00 00 00 00 00 |../ ....|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 6f 6e 20 73 74 61 72 74 | 75 70 0d 68 69 64 65 20 |on start|up.hide |
|00000690| 77 69 6e 64 6f 77 20 22 | 53 63 72 6f 6c 6c 22 0d |window "|Scroll".|
|000006a0| 69 66 20 69 74 65 6d 20 | 34 20 6f 66 20 74 68 65 |if item |4 of the|
|000006b0| 20 73 63 72 65 65 6e 52 | 65 63 74 20 3c 20 33 34 | screenR|ect < 34|
|000006c0| 33 20 74 68 65 6e 0d 70 | 75 74 20 74 68 65 20 72 |3 then.p|ut the r|
|000006d0| 65 63 74 20 6f 66 20 63 | 61 72 64 20 77 69 6e 64 |ect of c|ard wind|
|000006e0| 6f 77 20 69 6e 74 6f 20 | 74 68 65 52 65 63 74 0d |ow into |theRect.|
|000006f0| 70 75 74 20 32 32 20 69 | 6e 74 6f 20 69 74 65 6d |put 22 i|nto item|
|00000700| 20 32 20 6f 66 20 74 68 | 65 52 65 63 74 0d 70 75 | 2 of th|eRect.pu|
|00000710| 74 20 33 34 32 20 69 6e | 74 6f 20 69 74 65 6d 20 |t 342 in|to item |
|00000720| 34 20 6f 66 20 74 68 65 | 52 65 63 74 0d 73 65 74 |4 of the|Rect.set|
|00000730| 20 74 68 65 20 72 65 63 | 74 20 6f 66 20 63 61 72 | the rec|t of car|
|00000740| 64 20 77 69 6e 64 6f 77 | 20 74 6f 20 74 68 65 52 |d window| to theR|
|00000750| 65 63 74 0d 65 6e 64 20 | 69 66 0d 70 61 73 73 20 |ect.end |if.pass |
|00000760| 73 74 61 72 74 75 70 0d | 65 6e 64 20 73 74 61 72 |startup.|end star|
|00000770| 74 75 70 0d 0d 6f 6e 20 | 6f 70 65 6e 53 74 61 63 |tup..on |openStac|
|00000780| 6b 0d 73 65 74 20 74 68 | 65 20 63 75 72 73 6f 72 |k.set th|e cursor|
|00000790| 20 74 6f 20 77 61 74 63 | 68 0d 68 69 64 65 20 77 | to watc|h.hide w|
|000007a0| 69 6e 64 6f 77 20 22 73 | 63 72 6f 6c 6c 22 0d 0d |indow "s|croll"..|
|000007b0| 69 66 20 74 68 65 20 63 | 61 6e 74 6d 6f 64 69 66 |if the c|antmodif|
|000007c0| 79 20 6f 66 20 74 68 69 | 73 20 73 74 61 63 6b 20 |y of thi|s stack |
|000007d0| 69 73 20 66 61 6c 73 65 | 20 74 68 65 6e 0d 69 66 |is false| then.if|
|000007e0| 20 74 68 65 72 65 20 69 | 73 20 61 20 73 74 61 63 | there i|s a stac|
|000007f0| 6b 20 22 61 75 74 6f 66 | 6c 6f 77 22 20 74 68 65 |k "autof|low" the|
|00000800| 6e 20 73 74 61 72 74 20 | 75 73 69 6e 67 20 73 74 |n start |using st|
|00000810| 61 63 6b 20 22 61 75 74 | 6f 66 6c 6f 77 22 0d 65 |ack "aut|oflow".e|
|00000820| 6e 64 20 69 66 0d 0d 69 | 66 20 6e 6f 74 20 53 61 |nd if..i|f not Sa|
|00000830| 6d 65 52 6f 6f 74 44 69 | 73 6b 28 29 20 74 68 65 |meRootDi|sk() the|
|00000840| 6e 0d 53 68 6f 77 4e 6f | 74 65 73 20 74 72 75 65 |n.ShowNo|tes true|
|00000850| 0d 67 6c 6f 62 61 6c 20 | 67 4c 61 73 74 43 68 61 |.global |gLastCha|
|00000860| 70 74 65 72 4e 61 6d 65 | 2c 67 4c 61 73 74 50 61 |pterName|,gLastPa|
|00000870| 67 65 4e 75 6d 62 65 72 | 0d 70 75 74 20 22 43 68 |geNumber|.put "Ch|
|00000880| 61 70 74 65 72 20 49 22 | 20 69 6e 74 6f 20 67 4c |apter I"| into gL|
|00000890| 61 73 74 43 68 61 70 74 | 65 72 4e 61 6d 65 0d 70 |astChapt|erName.p|
|000008a0| 75 74 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ut the n|umber of|
|000008b0| 20 63 61 72 64 20 31 20 | 6f 66 20 62 67 20 22 74 | card 1 |of bg "t|
|000008c0| 65 78 74 22 20 69 6e 74 | 6f 20 67 4c 61 73 74 50 |ext" int|o gLastP|
|000008d0| 61 67 65 4e 75 6d 62 65 | 72 0d 53 68 6f 77 4c 61 |ageNumbe|r.ShowLa|
|000008e0| 73 74 43 68 61 70 74 65 | 72 0d 65 6c 73 65 20 53 |stChapte|r.else S|
|000008f0| 68 6f 77 4e 6f 74 65 73 | 20 53 68 6f 77 69 6e 67 |howNotes| Showing|
|00000900| 4e 6f 74 65 73 28 29 0d | 0d 53 65 74 55 70 4d 65 |Notes().|.SetUpMe|
|00000910| 6e 75 73 0d 70 61 73 73 | 20 6f 70 65 6e 73 74 61 |nus.pass| opensta|
|00000920| 63 6b 0d 65 6e 64 20 6f | 70 65 6e 53 74 61 63 6b |ck.end o|penStack|
|00000930| 0d 0d 6f 6e 20 63 6c 6f | 73 65 53 74 61 63 6b 0d |..on clo|seStack.|
|00000940| 70 75 74 20 53 74 61 63 | 6b 4c 6f 63 6b 65 64 28 |put Stac|kLocked(|
|00000950| 29 20 69 6e 74 6f 20 6c | 6f 63 6b 65 64 42 65 66 |) into l|ockedBef|
|00000960| 6f 72 65 0d 55 6e 6c 6f | 63 6b 53 74 61 63 6b 0d |ore.Unlo|ckStack.|
|00000970| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|00000980| 31 20 74 6f 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |1 to the| number |
|00000990| 6f 66 20 62 67 73 0d 73 | 65 74 20 74 68 65 20 63 |of bgs.s|et the c|
|000009a0| 75 72 73 6f 72 20 74 6f | 20 77 61 74 63 68 0d 69 |ursor to| watch.i|
|000009b0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 62 67 20 |f there |is a bg |
|000009c0| 62 74 6e 20 22 68 65 6c | 70 20 6f 66 66 22 20 6f |btn "hel|p off" o|
|000009d0| 66 20 63 64 20 31 20 6f | 66 20 62 67 20 69 0d 74 |f cd 1 o|f bg i.t|
|000009e0| 68 65 6e 20 73 65 74 20 | 74 68 65 20 69 63 6f 6e |hen set |the icon|
|000009f0| 20 6f 66 20 62 67 20 62 | 74 6e 20 22 68 65 6c 70 | of bg b|tn "help|
|00000a00| 20 6f 66 66 22 20 6f 66 | 20 63 64 20 31 20 6f 66 | off" of| cd 1 of|
|00000a10| 20 62 67 20 69 20 74 6f | 20 31 32 33 37 38 0d 65 | bg i to| 12378.e|
|00000a20| 6e 64 20 72 65 70 65 61 | 74 0d 53 68 6f 77 4c 61 |nd repea|t.ShowLa|
|00000a30| 73 74 43 68 61 70 74 65 | 72 0d 69 66 20 74 68 65 |stChapte|r.if the|
|00000a40| 20 66 72 65 65 53 69 7a | 65 20 6f 66 20 74 68 69 | freeSiz|e of thi|
|00000a50| 73 20 73 74 61 63 6b 20 | 3e 20 35 30 30 30 30 20 |s stack |> 50000 |
|00000a60| 74 68 65 6e 0d 73 65 6e | 64 20 22 64 6f 4d 65 6e |then.sen|d "doMen|
|00000a70| 75 20 63 6f 6d 70 61 63 | 74 20 73 74 61 63 6b 22 |u compac|t stack"|
|00000a80| 20 74 6f 20 48 79 70 65 | 72 43 61 72 64 0d 65 6e | to Hype|rCard.en|
|00000a90| 64 20 69 66 0d 69 66 20 | 6c 6f 63 6b 65 64 42 65 |d if.if |lockedBe|
|00000aa0| 66 6f 72 65 20 74 68 65 | 6e 20 4c 6f 63 6b 53 74 |fore the|n LockSt|
|00000ab0| 61 63 6b 0d 0d 52 65 6d | 6f 76 65 4d 65 6e 75 73 |ack..Rem|oveMenus|
|00000ac0| 0d 0d 70 61 73 73 20 63 | 6c 6f 73 65 53 74 61 63 |..pass c|loseStac|
|00000ad0| 6b 0d 65 6e 64 20 63 6c | 6f 73 65 53 74 61 63 6b |k.end cl|oseStack|
|00000ae0| 0d 0d 6f 6e 20 6f 70 65 | 6e 43 61 72 64 0d 53 68 |..on ope|nCard.Sh|
|00000af0| 6f 77 42 6f 6f 6b 4d 61 | 72 6b 0d 70 61 73 73 20 |owBookMa|rk.pass |
|00000b00| 6f 70 65 6e 43 61 72 64 | 0d 65 6e 64 20 6f 70 65 |openCard|.end ope|
|00000b10| 6e 43 61 72 64 0d 0d 6f | 6e 20 6f 70 65 6e 42 61 |nCard..o|n openBa|
|00000b20| 63 6b 67 72 6f 75 6e 64 | 0d 53 68 6f 77 4e 6f 74 |ckground|.ShowNot|
|00000b30| 65 73 20 53 68 6f 77 69 | 6e 67 4e 6f 74 65 73 28 |es Showi|ngNotes(|
|00000b40| 29 0d 70 61 73 73 20 6f | 70 65 6e 42 61 63 6b 67 |).pass o|penBackg|
|00000b50| 72 6f 75 6e 64 0d 65 6e | 64 20 6f 70 65 6e 42 61 |round.en|d openBa|
|00000b60| 63 6b 67 72 6f 75 6e 64 | 0d 0d 6f 6e 20 63 6c 6f |ckground|..on clo|
|00000b70| 73 65 42 61 63 6b 67 72 | 6f 75 6e 64 0d 54 75 72 |seBackgr|ound.Tur|
|00000b80| 6e 4f 66 66 42 75 74 74 | 6f 6e 48 65 6c 70 0d 70 |nOffButt|onHelp.p|
|00000b90| 61 73 73 20 63 6c 6f 73 | 65 42 61 63 6b 67 72 6f |ass clos|eBackgro|
|00000ba0| 75 6e 64 0d 65 6e 64 20 | 63 6c 6f 73 65 42 61 63 |und.end |closeBac|
|00000bb0| 6b 67 72 6f 75 6e 64 0d | 0d 6f 6e 20 6b 65 79 44 |kground.|.on keyD|
|00000bc0| 6f 77 6e 20 74 68 65 4b | 65 79 0d 69 66 20 74 68 |own theK|ey.if th|
|00000bd0| 65 4b 65 79 20 69 73 20 | 73 70 61 63 65 20 61 6e |eKey is |space an|
|00000be0| 64 20 c2 0d 74 68 65 20 | 73 65 6c 65 63 74 65 64 |d ..the |selected|
|00000bf0| 46 69 65 6c 64 20 69 73 | 20 65 6d 70 74 79 20 61 |Field is| empty a|
|00000c00| 6e 64 20 c2 0d 6e 6f 74 | 20 74 68 65 20 76 69 73 |nd ..not| the vis|
|00000c10| 69 62 6c 65 20 6f 66 20 | 74 68 65 20 6d 73 67 20 |ible of |the msg |
|00000c20| 61 6e 64 c2 0d 74 68 65 | 20 62 6c 69 6e 64 54 79 |and..the| blindTy|
|00000c30| 70 69 6e 67 20 69 73 20 | 66 61 6c 73 65 20 74 68 |ping is |false th|
|00000c40| 65 6e 0d 69 66 20 74 68 | 65 20 73 68 69 66 74 6b |en.if th|e shiftk|
|00000c50| 65 79 20 20 69 73 20 75 | 70 20 74 68 65 6e 0d 63 |ey is u|p then.c|
|00000c60| 6c 69 63 6b 20 61 74 20 | 74 68 65 20 6c 6f 63 20 |lick at |the loc |
|00000c70| 6f 66 20 62 67 20 62 74 | 6e 20 22 6e 65 78 74 20 |of bg bt|n "next |
|00000c80| 70 61 67 65 22 0d 65 6c | 73 65 20 63 6c 69 63 6b |page".el|se click|
|00000c90| 20 61 74 20 74 68 65 20 | 6c 6f 63 20 6f 66 20 62 | at the |loc of b|
|00000ca0| 67 20 62 74 6e 20 22 70 | 72 65 76 69 6f 75 73 20 |g btn "p|revious |
|00000cb0| 70 61 67 65 22 0d 65 6c | 73 65 20 70 61 73 73 20 |page".el|se pass |
|00000cc0| 6b 65 79 44 6f 77 6e 0d | 65 6e 64 20 6b 65 79 44 |keyDown.|end keyD|
|00000cd0| 6f 77 6e 0d 0d 6f 6e 20 | 64 6f 4d 65 6e 75 20 77 |own..on |doMenu w|
|00000ce0| 68 69 63 68 0d 69 66 20 | 77 68 69 63 68 20 69 73 |hich.if |which is|
|00000cf0| 20 22 70 72 65 76 22 20 | 74 68 65 6e 20 67 6f 50 | "prev" |then goP|
|00000d00| 72 65 76 69 6f 75 73 50 | 61 67 65 0d 65 6c 73 65 |reviousP|age.else|
|00000d10| 20 69 66 20 77 68 69 63 | 68 20 69 73 20 22 6e 65 | if whic|h is "ne|
|00000d20| 78 74 22 20 74 68 65 6e | 20 67 6f 4e 65 78 74 50 |xt" then| goNextP|
|00000d30| 61 67 65 0d 65 6c 73 65 | 20 69 66 20 77 68 69 63 |age.else| if whic|
|00000d40| 68 20 69 73 20 22 66 69 | 72 73 74 22 20 74 68 65 |h is "fi|rst" the|
|00000d50| 6e 0d 47 6f 50 61 67 65 | 20 31 2c 22 77 69 70 65 |n.GoPage| 1,"wipe|
|00000d60| 20 75 70 22 0d 65 6c 73 | 65 20 69 66 20 77 68 69 | up".els|e if whi|
|00000d70| 63 68 20 69 73 20 22 6c | 61 73 74 22 20 74 68 65 |ch is "l|ast" the|
|00000d80| 6e 0d 47 6f 50 61 67 65 | 20 28 74 68 65 20 6e 75 |n.GoPage| (the nu|
|00000d90| 6d 62 65 72 20 6f 66 20 | 63 61 72 64 73 29 2c 22 |mber of |cards),"|
|00000da0| 77 69 70 65 20 64 6f 77 | 6e 22 0d 65 6c 73 65 20 |wipe dow|n".else |
|00000db0| 69 66 20 77 68 69 63 68 | 20 69 73 20 22 66 69 6e |if which| is "fin|
|00000dc0| 64 2e 2e 2e 22 20 74 68 | 65 6e 20 53 74 61 72 74 |d..." th|en Start|
|00000dd0| 53 65 61 72 63 68 0d 65 | 6c 73 65 20 20 70 61 73 |Search.e|lse pas|
|00000de0| 73 20 64 6f 4d 65 6e 75 | 0d 65 6e 64 20 64 6f 4d |s doMenu|.end doM|
|00000df0| 65 6e 75 0d 0d 6f 6e 20 | 61 72 72 6f 77 4b 65 79 |enu..on |arrowKey|
|00000e00| 20 64 69 72 65 63 74 69 | 6f 6e 0d 69 66 20 64 69 | directi|on.if di|
|00000e10| 72 65 63 74 69 6f 6e 20 | 69 73 20 22 72 69 67 68 |rection |is "righ|
|00000e20| 74 22 20 74 68 65 6e 0d | 63 6c 69 63 6b 20 61 74 |t" then.|click at|
|00000e30| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 62 67 20 62 | the loc| of bg b|
|00000e40| 74 6e 20 22 4e 65 78 74 | 20 50 61 67 65 22 0d 65 |tn "Next| Page".e|
|00000e50| 6c 73 65 20 69 66 20 64 | 69 72 65 63 74 69 6f 6e |lse if d|irection|
|00000e60| 20 69 73 20 22 6c 65 66 | 74 22 20 74 68 65 6e 0d | is "lef|t" then.|
|00000e70| 63 6c 69 63 6b 20 61 74 | 20 74 68 65 20 6c 6f 63 |click at| the loc|
|00000e80| 20 6f 66 20 62 67 20 62 | 74 6e 20 22 50 72 65 76 | of bg b|tn "Prev|
|00000e90| 69 6f 75 73 20 50 61 67 | 65 22 0d 65 6c 73 65 20 |ious Pag|e".else |
|00000ea0| 69 66 20 64 69 72 65 63 | 74 69 6f 6e 20 69 73 20 |if direc|tion is |
|00000eb0| 22 75 70 22 20 74 68 65 | 6e 0d 63 6c 69 63 6b 20 |"up" the|n.click |
|00000ec0| 61 74 20 74 68 65 20 6c | 6f 63 20 6f 66 20 62 67 |at the l|oc of bg|
|00000ed0| 20 62 74 6e 20 22 50 72 | 65 76 69 6f 75 73 20 41 | btn "Pr|evious A|
|00000ee0| 72 74 69 63 6c 65 22 0d | 65 6c 73 65 20 69 66 20 |rticle".|else if |
|00000ef0| 64 69 72 65 63 74 69 6f | 6e 20 69 73 20 22 64 6f |directio|n is "do|
|00000f00| 77 6e 22 0d 74 68 65 6e | 20 20 63 6c 69 63 6b 20 |wn".then| click |
|00000f10| 61 74 20 74 68 65 20 6c | 6f 63 20 6f 66 20 62 67 |at the l|oc of bg|
|00000f20| 20 62 74 6e 20 22 4e 65 | 78 74 20 41 72 74 69 63 | btn "Ne|xt Artic|
|00000f30| 6c 65 22 0d 65 6e 64 20 | 61 72 72 6f 77 4b 65 79 |le".end |arrowKey|
|00000f40| 0d 0d 6f 6e 20 53 65 74 | 55 70 4d 65 6e 75 73 0d |..on Set|UpMenus.|
|00000f50| 73 65 74 20 74 68 65 20 | 63 75 72 73 6f 72 20 74 |set the |cursor t|
|00000f60| 6f 20 77 61 74 63 68 0d | 72 65 73 65 74 20 6d 65 |o watch.|reset me|
|00000f70| 6e 75 62 61 72 0d 69 66 | 20 74 68 65 72 65 20 69 |nubar.if| there i|
|00000f80| 73 20 61 20 6d 65 6e 75 | 20 22 46 6f 6e 74 22 20 |s a menu| "Font" |
|00000f90| 74 68 65 6e 20 64 65 6c | 65 74 65 20 6d 65 6e 75 |then del|ete menu|
|00000fa0| 20 22 46 6f 6e 74 22 0d | 69 66 20 74 68 65 72 65 | "Font".|if there|
|00000fb0| 20 69 73 20 61 20 6d 65 | 6e 75 20 22 53 74 79 6c | is a me|nu "Styl|
|00000fc0| 65 22 20 74 68 65 6e 20 | 64 65 6c 65 74 65 20 6d |e" then |delete m|
|00000fd0| 65 6e 75 20 22 53 74 79 | 6c 65 22 0d 0d 69 66 20 |enu "Sty|le"..if |
|00000fe0| 74 68 65 72 65 20 69 73 | 20 61 20 6d 65 6e 75 69 |there is| a menui|
|00000ff0| 74 65 6d 20 22 2d 31 22 | 20 6f 66 20 6d 65 6e 75 |tem "-1"| of menu|
|00001000| 20 22 46 69 6c 65 22 20 | 74 68 65 6e 0d 70 75 74 | "File" |then.put|
|00001010| 20 22 2d 2c 45 78 70 6f | 72 74 20 42 6f 6f 6b 20 | "-,Expo|rt Book |
|00001020| 54 65 78 74 2c 43 6c 65 | 61 72 20 4e 6f 74 65 73 |Text,Cle|ar Notes|
|00001030| 2c 43 6c 65 61 72 20 42 | 6f 6f 6b 6d 61 72 6b 73 |,Clear B|ookmarks|
|00001040| 22 20 69 6e 74 6f 20 6d | 65 6e 75 4c 69 73 74 0d |" into m|enuList.|
|00001050| 70 75 74 20 22 2c 45 78 | 70 6f 72 74 41 6c 6c 42 |put ",Ex|portAllB|
|00001060| 6f 6f 6b 54 65 78 74 2c | 43 6c 65 61 72 4e 6f 74 |ookText,|ClearNot|
|00001070| 65 73 2c 43 6c 65 61 72 | 42 6f 6f 6b 4d 61 72 6b |es,Clear|BookMark|
|00001080| 73 22 20 69 6e 74 6f 20 | 6d 73 67 4c 69 73 74 0d |s" into |msgList.|
|00001090| 49 6e 73 65 72 74 4d 65 | 6e 75 20 22 46 69 6c 65 |InsertMe|nu "File|
|000010a0| 22 2c 22 2d 31 22 2c 6d | 65 6e 75 4c 69 73 74 2c |","-1",m|enuList,|
|000010b0| 6d 73 67 4c 69 73 74 0d | 65 6e 64 20 69 66 0d 0d |msgList.|end if..|
|000010c0| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 6d 65 |if there| is a me|
|000010d0| 6e 75 20 22 45 64 69 74 | 22 20 74 68 65 6e 0d 69 |nu "Edit|" then.i|
|000010e0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 6d 65 6e |f there |is a men|
|000010f0| 75 69 74 65 6d 20 22 2d | 32 22 20 6f 66 20 6d 65 |uitem "-|2" of me|
|00001100| 6e 75 20 22 45 64 69 74 | 22 20 74 68 65 6e 0d 69 |nu "Edit|" then.i|
|00001110| 66 20 53 68 6f 77 69 6e | 67 4e 6f 74 65 73 28 29 |f Showin|gNotes()|
|00001120| 20 74 68 65 6e 0d 70 75 | 74 20 22 2d 2c 48 69 64 | then.pu|t "-,Hid|
|00001130| 65 20 4e 6f 74 65 73 2c | 55 6e 64 65 72 6c 69 6e |e Notes,|Underlin|
|00001140| 65 20 54 65 78 74 2c 53 | 65 74 20 42 6f 6f 6b 6d |e Text,S|et Bookm|
|00001150| 61 72 6b 22 69 6e 74 6f | 20 6d 65 6e 75 4c 69 73 |ark"into| menuLis|
|00001160| 74 0d 65 6c 73 65 20 70 | 75 74 20 22 2d 2c 53 68 |t.else p|ut "-,Sh|
|00001170| 6f 77 20 4e 6f 74 65 73 | 2c 55 6e 64 65 72 6c 69 |ow Notes|,Underli|
|00001180| 6e 65 20 54 65 78 74 2c | 53 65 74 20 42 6f 6f 6b |ne Text,|Set Book|
|00001190| 6d 61 72 6b 22 69 6e 74 | 6f 20 6d 65 6e 75 4c 69 |mark"int|o menuLi|
|000011a0| 73 74 0d 70 75 74 20 22 | 2c 53 68 6f 77 4e 6f 74 |st.put "|,ShowNot|
|000011b0| 65 73 20 6e 6f 74 20 53 | 68 6f 77 69 6e 67 4e 6f |es not S|howingNo|
|000011c0| 74 65 73 28 29 2c 4d 61 | 72 6b 54 65 78 74 2c 42 |tes(),Ma|rkText,B|
|000011d0| 6f 6f 6b 4d 61 72 6b 22 | 20 69 6e 74 6f 20 6d 73 |ookMark"| into ms|
|000011e0| 67 4c 69 73 74 0d 70 75 | 74 20 22 2c 4e 2c 55 2c |gList.pu|t ",N,U,|
|000011f0| 22 20 69 6e 74 6f 20 63 | 6d 64 43 68 61 72 4c 69 |" into c|mdCharLi|
|00001200| 73 74 0d 49 6e 73 65 72 | 74 4d 65 6e 75 20 22 45 |st.Inser|tMenu "E|
|00001210| 64 69 74 22 2c 22 2d 32 | 22 2c 6d 65 6e 75 4c 69 |dit","-2|",menuLi|
|00001220| 73 74 2c 6d 73 67 4c 69 | 73 74 2c 63 6d 64 43 68 |st,msgLi|st,cmdCh|
|00001230| 61 72 4c 69 73 74 0d 65 | 6e 64 20 69 66 0d 69 66 |arList.e|nd if.if|
|00001240| 20 74 68 65 72 65 20 69 | 73 20 61 20 6d 65 6e 75 | there i|s a menu|
|00001250| 49 74 65 6d 20 22 54 65 | 78 74 20 53 74 79 6c 65 |Item "Te|xt Style|
|00001260| 2e 2e 2e 22 20 6f 66 20 | 6d 65 6e 75 20 22 45 64 |..." of |menu "Ed|
|00001270| 69 74 22 20 c2 0d 74 68 | 65 6e 20 64 65 6c 65 74 |it" ..th|en delet|
|00001280| 65 20 6d 65 6e 75 49 74 | 65 6d 20 22 54 65 78 74 |e menuIt|em "Text|
|00001290| 20 53 74 79 6c 65 2e 2e | 2e 22 20 6f 66 20 6d 65 | Style..|." of me|
|000012a0| 6e 75 20 22 45 64 69 74 | 22 0d 0d 69 66 20 74 68 |nu "Edit|"..if th|
|000012b0| 65 72 65 20 69 73 20 61 | 20 6d 65 6e 75 49 74 65 |ere is a| menuIte|
|000012c0| 6d 20 22 4e 65 77 20 43 | 61 72 64 22 20 6f 66 20 |m "New C|ard" of |
|000012d0| 6d 65 6e 75 20 22 45 64 | 69 74 22 20 c2 0d 74 68 |menu "Ed|it" ..th|
|000012e0| 65 6e 20 64 65 6c 65 74 | 65 20 6d 65 6e 75 49 74 |en delet|e menuIt|
|000012f0| 65 6d 20 22 4e 65 77 20 | 43 61 72 64 22 20 6f 66 |em "New |Card" of|
|00001300| 20 6d 65 6e 75 20 22 45 | 64 69 74 22 0d 0d 69 66 | menu "E|dit"..if|
|00001310| 20 74 68 65 72 65 20 69 | 73 20 61 20 6d 65 6e 75 | there i|s a menu|
|00001320| 49 74 65 6d 20 22 44 65 | 6c 65 74 65 20 43 61 72 |Item "De|lete Car|
|00001330| 64 22 20 6f 66 20 6d 65 | 6e 75 20 22 45 64 69 74 |d" of me|nu "Edit|
|00001340| 22 20 c2 0d 74 68 65 6e | 20 64 65 6c 65 74 65 20 |" ..then| delete |
|00001350| 6d 65 6e 75 49 74 65 6d | 20 22 44 65 6c 65 74 65 |menuItem| "Delete|
|00001360| 20 43 61 72 64 22 20 6f | 66 20 6d 65 6e 75 20 22 | Card" o|f menu "|
|00001370| 45 64 69 74 22 0d 0d 69 | 66 20 74 68 65 72 65 20 |Edit"..i|f there |
|00001380| 69 73 20 61 20 6d 65 6e | 75 49 74 65 6d 20 22 43 |is a men|uItem "C|
|00001390| 75 74 20 43 61 72 64 22 | 20 6f 66 20 6d 65 6e 75 |ut Card"| of menu|
|000013a0| 20 22 45 64 69 74 22 20 | c2 0d 74 68 65 6e 20 64 | "Edit" |..then d|
|000013b0| 65 6c 65 74 65 20 6d 65 | 6e 75 49 74 65 6d 20 22 |elete me|nuItem "|
|000013c0| 43 75 74 20 43 61 72 64 | 22 20 6f 66 20 6d 65 6e |Cut Card|" of men|
|000013d0| 75 20 22 45 64 69 74 22 | 0d 65 6e 64 20 69 66 0d |u "Edit"|.end if.|
|000013e0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 6d |.if ther|e is a m|
|000013f0| 65 6e 75 20 22 47 6f 22 | 20 74 68 65 6e 0d 69 66 |enu "Go"| then.if|
|00001400| 20 74 68 65 72 65 20 69 | 73 20 61 20 6d 65 6e 75 | there i|s a menu|
|00001410| 49 74 65 6d 20 22 2d 31 | 22 20 6f 66 20 6d 65 6e |Item "-1|" of men|
|00001420| 75 20 22 47 6f 22 20 74 | 68 65 6e 0d 49 6e 73 65 |u "Go" t|hen.Inse|
|00001430| 72 74 4d 65 6e 75 20 22 | 47 6f 22 2c 22 2d 31 22 |rtMenu "|Go","-1"|
|00001440| 2c 22 54 6f 20 50 61 67 | 65 2e 2e 2e 22 2c 22 47 |,"To Pag|e...","G|
|00001450| 6f 54 6f 50 61 67 65 22 | 2c 22 30 22 0d 65 6e 64 |oToPage"|,"0".end|
|00001460| 20 69 66 0d 0d 69 66 20 | 74 68 65 72 65 20 69 73 | if..if |there is|
|00001470| 20 61 20 6d 65 6e 75 69 | 74 65 6d 20 22 2d 32 22 | a menui|tem "-2"|
|00001480| 20 6f 66 20 6d 65 6e 75 | 20 22 47 6f 22 20 74 68 | of menu| "Go" th|
|00001490| 65 6e 0d 70 75 74 20 22 | 2d 2c 54 61 62 6c 65 20 |en.put "|-,Table |
|000014a0| 6f 66 20 43 6f 6e 74 65 | 6e 74 73 2c 50 72 65 76 |of Conte|nts,Prev|
|000014b0| 20 43 68 61 70 74 65 72 | 2c 4e 65 78 74 20 43 68 | Chapter|,Next Ch|
|000014c0| 61 70 74 65 72 2c 50 72 | 65 76 20 42 6f 6f 6b 6d |apter,Pr|ev Bookm|
|000014d0| 61 72 6b 2c 4e 65 78 74 | 20 42 6f 6f 6b 6d 61 72 |ark,Next| Bookmar|
|000014e0| 6b 22 20 69 6e 74 6f 20 | 6d 65 6e 75 4c 69 73 74 |k" into |menuList|
|000014f0| 0d 70 75 74 20 22 2d 2c | 47 6f 43 6f 6e 74 65 6e |.put "-,|GoConten|
|00001500| 74 73 2c 47 6f 50 72 65 | 76 69 6f 75 73 41 72 74 |ts,GoPre|viousArt|
|00001510| 69 63 6c 65 2c 47 6f 4e | 65 78 74 41 72 74 69 63 |icle,GoN|extArtic|
|00001520| 6c 65 2c 47 6f 50 72 65 | 76 42 6f 6f 6b 4d 61 72 |le,GoPre|vBookMar|
|00001530| 6b 2c 47 6f 42 6f 6f 6b | 4d 61 72 6b 22 20 69 6e |k,GoBook|Mark" in|
|00001540| 74 6f 20 6d 73 67 4c 69 | 73 74 0d 70 75 74 20 22 |to msgLi|st.put "|
|00001550| 2c 35 2c 36 2c 37 2c 38 | 2c 39 22 20 69 6e 74 6f |,5,6,7,8|,9" into|
|00001560| 20 63 6d 64 43 68 61 72 | 4c 69 73 74 0d 49 6e 73 | cmdChar|List.Ins|
|00001570| 65 72 74 4d 65 6e 75 20 | 22 47 6f 22 2c 22 2d 32 |ertMenu |"Go","-2|
|00001580| 22 2c 6d 65 6e 75 4c 69 | 73 74 2c 6d 73 67 4c 69 |",menuLi|st,msgLi|
|00001590| 73 74 2c 63 6d 64 43 68 | 61 72 4c 69 73 74 0d 65 |st,cmdCh|arList.e|
|000015a0| 6e 64 20 69 66 0d 0d 69 | 66 20 74 68 65 72 65 20 |nd if..i|f there |
|000015b0| 69 73 20 61 20 6d 65 6e | 75 49 74 65 6d 20 22 46 |is a men|uItem "F|
|000015c0| 69 6e 64 2e 2e 2e 22 20 | 6f 66 20 6d 65 6e 75 20 |ind..." |of menu |
|000015d0| 22 47 6f 22 20 74 68 65 | 6e 0d 70 75 74 20 22 46 |"Go" the|n.put "F|
|000015e0| 69 6e 64 20 41 67 61 69 | 6e 22 20 61 66 74 65 72 |ind Agai|n" after|
|000015f0| 20 6d 65 6e 75 69 74 65 | 6d 20 22 46 69 6e 64 2e | menuite|m "Find.|
|00001600| 2e 2e 22 20 6f 66 20 6d | 65 6e 75 20 22 47 6f 22 |.." of m|enu "Go"|
|00001610| 20 c2 0d 77 69 74 68 20 | 6d 65 6e 75 6d 65 73 73 | ..with |menumess|
|00001620| 61 67 65 73 20 22 53 74 | 61 72 74 53 65 61 72 63 |ages "St|artSearc|
|00001630| 68 20 74 72 75 65 22 0d | 73 65 74 20 74 68 65 20 |h true".|set the |
|00001640| 63 6f 6d 6d 61 6e 64 43 | 68 61 72 20 6f 66 20 6d |commandC|har of m|
|00001650| 65 6e 75 49 74 65 6d 20 | 22 46 69 6e 64 20 41 67 |enuItem |"Find Ag|
|00001660| 61 69 6e 22 20 6f 66 20 | 6d 65 6e 75 20 22 47 6f |ain" of |menu "Go|
|00001670| 22 20 74 6f 20 22 47 22 | 0d 65 6e 64 20 69 66 0d |" to "G"|.end if.|
|00001680| 65 6e 64 20 69 66 0d 65 | 6e 64 20 53 65 74 55 70 |end if.e|nd SetUp|
|00001690| 4d 65 6e 75 73 0d 0d 6f | 6e 20 49 6e 73 65 72 74 |Menus..o|n Insert|
|000016a0| 4d 65 6e 75 20 74 68 65 | 4d 65 6e 75 2c 74 68 65 |Menu the|Menu,the|
|000016b0| 50 6f 73 69 74 69 6f 6e | 2c 6d 65 6e 75 4c 69 73 |Position|,menuLis|
|000016c0| 74 2c 6d 73 67 4c 69 73 | 74 2c 63 6d 64 43 68 61 |t,msgLis|t,cmdCha|
|000016d0| 72 4c 69 73 74 0d 70 75 | 74 20 4c 69 6e 65 4e 75 |rList.pu|t LineNu|
|000016e0| 6d 62 65 72 28 74 68 65 | 50 6f 73 69 74 69 6f 6e |mber(the|Position|
|000016f0| 2c 6d 65 6e 75 20 74 68 | 65 4d 65 6e 75 29 20 69 |,menu th|eMenu) i|
|00001700| 6e 74 6f 20 74 68 65 49 | 74 65 6d 0d 69 66 20 74 |nto theI|tem.if t|
|00001710| 68 65 49 74 65 6d 20 69 | 73 20 30 20 74 68 65 6e |heItem i|s 0 then|
|00001720| 20 65 78 69 74 20 49 6e | 73 65 72 74 4d 65 6e 75 | exit In|sertMenu|
|00001730| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|00001740| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 69 | the num|ber of i|
|00001750| 74 65 6d 73 20 6f 66 20 | 6d 65 6e 75 4c 69 73 74 |tems of |menuList|
|00001760| 20 64 6f 77 6e 20 74 6f | 20 31 0d 70 75 74 20 69 | down to| 1.put i|
|00001770| 74 65 6d 20 69 20 6f 66 | 20 6d 65 6e 75 4c 69 73 |tem i of| menuLis|
|00001780| 74 20 69 6e 74 6f 20 69 | 74 65 6d 4e 61 6d 65 0d |t into i|temName.|
|00001790| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 6d 65 |if there| is a me|
|000017a0| 6e 75 49 74 65 6d 20 69 | 74 65 6d 4e 61 6d 65 20 |nuItem i|temName |
|000017b0| 6f 66 20 6d 65 6e 75 20 | 74 68 65 4d 65 6e 75 20 |of menu |theMenu |
|000017c0| 74 68 65 6e 20 6e 65 78 | 74 20 72 65 70 65 61 74 |then nex|t repeat|
|000017d0| 0d 0d 70 75 74 20 69 74 | 65 6d 4e 61 6d 65 20 62 |..put it|emName b|
|000017e0| 65 66 6f 72 65 20 6d 65 | 6e 75 49 74 65 6d 20 74 |efore me|nuItem t|
|000017f0| 68 65 49 74 65 6d 20 6f | 66 20 6d 65 6e 75 20 74 |heItem o|f menu t|
|00001800| 68 65 4d 65 6e 75 20 20 | c2 0d 77 69 74 68 20 6d |heMenu |..with m|
|00001810| 65 6e 75 6d 65 73 73 61 | 67 65 73 20 69 74 65 6d |enumessa|ges item|
|00001820| 20 69 20 6f 66 20 6d 73 | 67 4c 69 73 74 0d 69 66 | i of ms|gList.if|
|00001830| 20 69 74 65 6d 20 69 20 | 6f 66 20 63 6d 64 43 68 | item i |of cmdCh|
|00001840| 61 72 4c 69 73 74 20 69 | 73 20 6e 6f 74 20 65 6d |arList i|s not em|
|00001850| 70 74 79 20 74 68 65 6e | 0d 73 65 74 20 74 68 65 |pty then|.set the|
|00001860| 20 63 6f 6d 6d 61 6e 64 | 43 68 61 72 20 6f 66 20 | command|Char of |
|00001870| 6d 65 6e 75 49 74 65 6d | 20 69 74 65 6d 4e 61 6d |menuItem| itemNam|
|00001880| 65 20 6f 66 20 6d 65 6e | 75 20 74 68 65 4d 65 6e |e of men|u theMen|
|00001890| 75 20 74 6f 20 69 74 65 | 6d 20 69 20 6f 66 20 63 |u to ite|m i of c|
|000018a0| 6d 64 43 68 61 72 4c 69 | 73 74 0d 65 6e 64 20 69 |mdCharLi|st.end i|
|000018b0| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 65 6e 64 |f.end re|peat.end|
|000018c0| 20 49 6e 73 65 72 74 4d | 65 6e 75 0d 0d 6f 6e 20 | InsertM|enu..on |
|000018d0| 52 65 6d 6f 76 65 4d 65 | 6e 75 73 0d 72 65 73 65 |RemoveMe|nus.rese|
|000018e0| 74 20 6d 65 6e 75 62 61 | 72 0d 65 6e 64 20 52 65 |t menuba|r.end Re|
|000018f0| 6d 6f 76 65 4d 65 6e 75 | 73 0d 0d 2d 2d 09 47 4f |moveMenu|s..--.GO|
|00001900| 20 74 68 69 6e 67 73 0d | 6f 6e 20 47 6f 50 61 67 | things.|on GoPag|
|00001910| 65 20 74 68 65 43 61 72 | 64 2c 74 68 65 45 66 66 |e theCar|d,theEff|
|00001920| 65 63 74 2c 74 68 65 53 | 74 61 63 6b 0d 69 66 20 |ect,theS|tack.if |
|00001930| 74 68 65 45 66 66 65 63 | 74 20 69 73 20 65 6d 70 |theEffec|t is emp|
|00001940| 74 79 20 74 68 65 6e 20 | 70 75 74 20 22 70 6c 61 |ty then |put "pla|
|00001950| 69 6e 22 20 69 6e 74 6f | 20 74 68 65 45 66 66 65 |in" into| theEffe|
|00001960| 63 74 0d 69 66 20 74 68 | 65 53 74 61 63 6b 20 69 |ct.if th|eStack i|
|00001970| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 20 70 75 74 |s empty |then put|
|00001980| 20 53 74 61 63 6b 4e 61 | 6d 65 28 29 20 69 6e 74 | StackNa|me() int|
|00001990| 6f 20 74 68 65 53 74 61 | 63 6b 0d 6c 6f 63 6b 20 |o theSta|ck.lock |
|000019a0| 73 63 72 65 65 6e 0d 67 | 6f 20 74 6f 20 63 61 72 |screen.g|o to car|
|000019b0| 64 20 74 68 65 43 61 72 | 64 20 6f 66 20 73 74 61 |d theCar|d of sta|
|000019c0| 63 6b 20 74 68 65 53 74 | 61 63 6b 0d 75 6e 6c 6f |ck theSt|ack.unlo|
|000019d0| 63 6b 20 73 63 72 65 65 | 6e 20 77 69 74 68 20 76 |ck scree|n with v|
|000019e0| 69 73 75 61 6c 20 65 66 | 66 65 63 74 20 74 68 65 |isual ef|fect the|
|000019f0| 45 66 66 65 63 74 0d 73 | 65 74 20 74 68 65 20 6c |Effect.s|et the l|
|00001a00| 6f 63 6b 73 63 72 65 65 | 6e 20 74 6f 20 66 61 6c |ockscree|n to fal|
|00001a10| 73 65 0d 72 65 70 65 61 | 74 20 77 68 69 6c 65 20 |se.repea|t while |
|00001a20| 74 68 65 20 6d 6f 75 73 | 65 63 6c 69 63 6b 0d 67 |the mous|eclick.g|
|00001a30| 65 74 20 74 68 65 20 6d | 6f 75 73 65 63 6c 69 63 |et the m|ouseclic|
|00001a40| 6b 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 65 6e 64 |k.end re|peat.end|
|00001a50| 20 47 6f 50 61 67 65 0d | 0d 6f 6e 20 47 6f 54 6f | GoPage.|.on GoTo|
|00001a60| 50 61 67 65 0d 70 75 74 | 20 74 68 65 20 6e 75 6d |Page.put| the num|
|00001a70| 62 65 72 20 6f 66 20 63 | 61 72 64 73 20 6f 66 20 |ber of c|ards of |
|00001a80| 62 67 20 22 54 65 78 74 | 22 20 69 6e 74 6f 20 6c |bg "Text|" into l|
|00001a90| 61 73 74 50 61 67 65 0d | 69 66 20 74 68 65 20 6e |astPage.|if the n|
|00001aa0| 75 6d 62 65 72 20 6f 66 | 20 74 68 69 73 20 63 61 |umber of| this ca|
|00001ab0| 72 64 20 69 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |rd is th|e number|
|00001ac0| 20 6f 66 20 6c 61 73 74 | 20 63 61 72 64 20 6f 66 | of last| card of|
|00001ad0| 20 62 67 20 22 54 65 78 | 74 22 20 c2 0d 6f 72 20 | bg "Tex|t" ..or |
|00001ae0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 68 |the numb|er of th|
|00001af0| 69 73 20 63 61 72 64 20 | 3c 20 74 68 65 20 6e 75 |is card |< the nu|
|00001b00| 6d 62 65 72 20 6f 66 20 | 66 69 72 73 74 20 63 61 |mber of |first ca|
|00001b10| 72 64 20 6f 66 20 62 67 | 20 22 54 65 78 74 22 20 |rd of bg| "Text" |
|00001b20| 74 68 65 6e 0d 67 65 74 | 20 31 0d 65 6c 73 65 20 |then.get| 1.else |
|00001b30| 67 65 74 20 50 61 67 65 | 4e 75 6d 62 65 72 28 29 |get Page|Number()|
|00001b40| 2b 31 0d 61 73 6b 20 22 | 47 6f 20 74 6f 20 77 68 |+1.ask "|Go to wh|
|00001b50| 69 63 68 20 70 61 67 65 | 3f 20 28 31 2d 22 26 6c |ich page|? (1-"&l|
|00001b60| 61 73 74 50 61 67 65 26 | 22 29 22 20 77 69 74 68 |astPage&|")" with|
|00001b70| 20 69 74 0d 69 66 20 69 | 74 20 69 73 20 65 6d 70 | it.if i|t is emp|
|00001b80| 74 79 20 74 68 65 6e 20 | 65 78 69 74 20 47 6f 54 |ty then |exit GoT|
|00001b90| 6f 50 61 67 65 0d 65 6c | 73 65 20 69 66 20 69 74 |oPage.el|se if it|
|00001ba0| 20 3e 20 6c 61 73 74 50 | 61 67 65 20 74 68 65 6e | > lastP|age then|
|00001bb0| 0d 62 65 65 70 0d 65 78 | 69 74 20 47 6f 54 6f 50 |.beep.ex|it GoToP|
|00001bc0| 61 67 65 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 74 |age.end |if.put t|
|00001bd0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 61 72 |he numbe|r of car|
|00001be0| 64 20 69 74 20 6f 66 20 | 62 67 20 22 74 65 78 74 |d it of |bg "text|
|00001bf0| 22 20 69 6e 74 6f 20 74 | 68 65 50 61 67 65 0d 47 |" into t|hePage.G|
|00001c00| 6f 50 61 67 65 20 74 68 | 65 50 61 67 65 2c 22 64 |oPage th|ePage,"d|
|00001c10| 69 73 73 6f 6c 76 65 20 | 76 65 72 79 20 66 61 73 |issolve |very fas|
|00001c20| 74 22 0d 65 6e 64 20 47 | 6f 54 6f 50 61 67 65 0d |t".end G|oToPage.|
|00001c30| 0d 0d 6f 6e 20 47 6f 4e | 65 78 74 50 61 67 65 0d |..on GoN|extPage.|
|00001c40| 72 65 70 65 61 74 0d 6c | 6f 63 6b 20 73 63 72 65 |repeat.l|ock scre|
|00001c50| 65 6e 0d 67 6f 20 6e 65 | 78 74 0d 75 6e 6c 6f 63 |en.go ne|xt.unloc|
|00001c60| 6b 20 73 63 72 65 65 6e | 20 77 69 74 68 20 76 69 |k screen| with vi|
|00001c70| 73 75 61 6c 20 65 66 66 | 65 63 74 20 77 69 70 65 |sual eff|ect wipe|
|00001c80| 20 6c 65 66 74 20 66 61 | 73 74 0d 69 66 20 74 68 | left fa|st.if th|
|00001c90| 65 20 6d 6f 75 73 65 20 | 69 73 20 75 70 20 74 68 |e mouse |is up th|
|00001ca0| 65 6e 20 65 78 69 74 20 | 72 65 70 65 61 74 0d 69 |en exit |repeat.i|
|00001cb0| 66 20 74 68 65 20 6d 6f | 75 73 65 4c 6f 63 20 69 |f the mo|useLoc i|
|00001cc0| 73 20 6e 6f 74 20 77 69 | 74 68 69 6e 20 74 68 65 |s not wi|thin the|
|00001cd0| 20 72 65 63 74 20 6f 66 | 20 74 68 65 20 74 61 72 | rect of| the tar|
|00001ce0| 67 65 74 20 74 68 65 6e | 20 65 78 69 74 20 72 65 |get then| exit re|
|00001cf0| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|00001d00| 65 6e 64 20 47 6f 4e 65 | 78 74 50 61 67 65 0d 0d |end GoNe|xtPage..|
|00001d10| 6f 6e 20 47 6f 50 72 65 | 76 69 6f 75 73 50 61 67 |on GoPre|viousPag|
|00001d20| 65 0d 72 65 70 65 61 74 | 0d 6c 6f 63 6b 20 73 63 |e.repeat|.lock sc|
|00001d30| 72 65 65 6e 0d 67 6f 20 | 70 72 65 76 0d 75 6e 6c |reen.go |prev.unl|
|00001d40| 6f 63 6b 20 73 63 72 65 | 65 6e 20 77 69 74 68 20 |ock scre|en with |
|00001d50| 76 69 73 75 61 6c 20 65 | 66 66 65 63 74 20 77 69 |visual e|ffect wi|
|00001d60| 70 65 20 72 69 67 68 74 | 20 66 61 73 74 0d 69 66 |pe right| fast.if|
|00001d70| 20 74 68 65 20 6d 6f 75 | 73 65 20 69 73 20 75 70 | the mou|se is up|
|00001d80| 20 74 68 65 6e 20 65 78 | 69 74 20 72 65 70 65 61 | then ex|it repea|
|00001d90| 74 0d 69 66 20 74 68 65 | 20 6d 6f 75 73 65 4c 6f |t.if the| mouseLo|
|00001da0| 63 20 69 73 20 6e 6f 74 | 20 77 69 74 68 69 6e 20 |c is not| within |
|00001db0| 74 68 65 20 72 65 63 74 | 20 6f 66 20 74 68 65 20 |the rect| of the |
|00001dc0| 74 61 72 67 65 74 20 74 | 68 65 6e 20 65 78 69 74 |target t|hen exit|
|00001dd0| 20 72 65 70 65 61 74 0d | 65 6e 64 20 72 65 70 65 | repeat.|end repe|
|00001de0| 61 74 0d 65 6e 64 20 47 | 6f 50 72 65 76 69 6f 75 |at.end G|oPreviou|
|00001df0| 73 50 61 67 65 0d 0d 6f | 6e 20 47 6f 4e 65 78 74 |sPage..o|n GoNext|
|00001e00| 41 72 74 69 63 6c 65 0d | 70 75 74 20 43 61 72 64 |Article.|put Card|
|00001e10| 4e 75 6d 62 65 72 28 29 | 20 69 6e 74 6f 20 74 68 |Number()| into th|
|00001e20| 65 43 61 72 64 0d 72 65 | 70 65 61 74 0d 69 66 20 |eCard.re|peat.if |
|00001e30| 42 65 67 69 6e 6e 69 6e | 67 4f 66 53 65 63 74 69 |Beginnin|gOfSecti|
|00001e40| 6f 6e 28 29 20 74 68 65 | 6e 20 61 64 64 20 31 20 |on() the|n add 1 |
|00001e50| 74 6f 20 74 68 65 43 61 | 72 64 0d 72 65 70 65 61 |to theCa|rd.repea|
|00001e60| 74 20 77 68 69 6c 65 20 | 6e 6f 74 20 42 65 67 69 |t while |not Begi|
|00001e70| 6e 6e 69 6e 67 4f 66 53 | 65 63 74 69 6f 6e 28 74 |nningOfS|ection(t|
|00001e80| 68 65 43 61 72 64 29 0d | 61 64 64 20 31 20 74 6f |heCard).|add 1 to|
|00001e90| 20 74 68 65 43 61 72 64 | 0d 69 66 20 74 68 65 43 | theCard|.if theC|
|00001ea0| 61 72 64 20 3e 20 74 68 | 65 20 6e 75 6d 62 65 72 |ard > th|e number|
|00001eb0| 20 6f 66 20 63 61 72 64 | 73 20 74 68 65 6e 20 70 | of card|s then p|
|00001ec0| 75 74 20 31 20 69 6e 74 | 6f 20 74 68 65 43 61 72 |ut 1 int|o theCar|
|00001ed0| 64 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 47 6f 50 |d.end re|peat.GoP|
|00001ee0| 61 67 65 20 74 68 65 43 | 61 72 64 2c 22 7a 6f 6f |age theC|ard,"zoo|
|00001ef0| 6d 20 6f 75 74 22 0d 69 | 66 20 74 68 65 20 6d 6f |m out".i|f the mo|
|00001f00| 75 73 65 20 69 73 20 75 | 70 20 74 68 65 6e 20 65 |use is u|p then e|
|00001f10| 78 69 74 20 72 65 70 65 | 61 74 0d 65 6e 64 20 72 |xit repe|at.end r|
|00001f20| 65 70 65 61 74 0d 65 6e | 64 20 47 6f 4e 65 78 74 |epeat.en|d GoNext|
|00001f30| 41 72 74 69 63 6c 65 0d | 0d 6f 6e 20 47 6f 50 72 |Article.|.on GoPr|
|00001f40| 65 76 69 6f 75 73 41 72 | 74 69 63 6c 65 0d 70 75 |eviousAr|ticle.pu|
|00001f50| 74 20 43 61 72 64 4e 75 | 6d 62 65 72 28 29 20 69 |t CardNu|mber() i|
|00001f60| 6e 74 6f 20 74 68 65 43 | 61 72 64 0d 72 65 70 65 |nto theC|ard.repe|
|00001f70| 61 74 0d 69 66 20 42 65 | 67 69 6e 6e 69 6e 67 4f |at.if Be|ginningO|
|00001f80| 66 53 65 63 74 69 6f 6e | 28 29 20 74 68 65 6e 20 |fSection|() then |
|00001f90| 73 75 62 74 72 61 63 74 | 20 31 20 66 72 6f 6d 20 |subtract| 1 from |
|00001fa0| 74 68 65 43 61 72 64 0d | 72 65 70 65 61 74 20 77 |theCard.|repeat w|
|00001fb0| 68 69 6c 65 20 6e 6f 74 | 20 42 65 67 69 6e 6e 69 |hile not| Beginni|
|00001fc0| 6e 67 4f 66 53 65 63 74 | 69 6f 6e 28 74 68 65 43 |ngOfSect|ion(theC|
|00001fd0| 61 72 64 29 0d 73 75 62 | 74 72 61 63 74 20 31 20 |ard).sub|tract 1 |
|00001fe0| 66 72 6f 6d 20 74 68 65 | 43 61 72 64 0d 69 66 20 |from the|Card.if |
|00001ff0| 74 68 65 43 61 72 64 20 | 3c 20 31 20 74 68 65 6e |theCard |< 1 then|
|00002000| 20 70 75 74 20 74 68 65 | 20 6e 75 6d 62 65 72 20 | put the| number |
|00002010| 6f 66 20 63 61 72 64 73 | 20 69 6e 74 6f 20 74 68 |of cards| into th|
|00002020| 65 43 61 72 64 0d 65 6e | 64 20 72 65 70 65 61 74 |eCard.en|d repeat|
|00002030| 0d 47 6f 50 61 67 65 20 | 74 68 65 43 61 72 64 2c |.GoPage |theCard,|
|00002040| 22 7a 6f 6f 6d 20 6f 75 | 74 22 0d 69 66 20 74 68 |"zoom ou|t".if th|
|00002050| 65 20 6d 6f 75 73 65 20 | 69 73 20 75 70 20 74 68 |e mouse |is up th|
|00002060| 65 6e 20 65 78 69 74 20 | 72 65 70 65 61 74 0d 65 |en exit |repeat.e|
|00002070| 6e 64 20 72 65 70 65 61 | 74 0d 65 6e 64 20 47 6f |nd repea|t.end Go|
|00002080| 50 72 65 76 69 6f 75 73 | 41 72 74 69 63 6c 65 0d |Previous|Article.|
|00002090| 0d 6f 6e 20 47 6f 43 6f | 6e 74 65 6e 74 73 0d 6c |.on GoCo|ntents.l|
|000020a0| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 67 65 74 20 43 |ock scre|en.get C|
|000020b0| 6f 6e 74 65 6e 74 73 50 | 61 67 65 28 29 0d 69 66 |ontentsP|age().if|
|000020c0| 20 69 74 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 | it is e|mpty the|
|000020d0| 6e 20 67 6f 20 63 64 20 | 22 63 6f 6e 74 65 6e 74 |n go cd |"content|
|000020e0| 73 22 0d 65 6c 73 65 20 | 67 6f 20 63 64 20 69 74 |s".else |go cd it|
|000020f0| 20 6f 66 20 62 67 20 22 | 43 6f 6e 74 65 6e 74 73 | of bg "|Contents|
|00002100| 22 0d 75 6e 6c 6f 63 6b | 20 73 63 72 65 65 6e 20 |".unlock| screen |
|00002110| 77 69 74 68 20 76 69 73 | 75 61 6c 20 65 66 66 65 |with vis|ual effe|
|00002120| 63 74 20 69 72 69 73 20 | 63 6c 6f 73 65 0d 65 6e |ct iris |close.en|
|00002130| 64 20 47 6f 43 6f 6e 74 | 65 6e 74 73 0d 0d 6f 6e |d GoCont|ents..on|
|00002140| 20 47 6f 54 6f 53 6c 65 | 65 70 0d 73 65 6e 64 20 | GoToSle|ep.send |
|00002150| 22 64 6f 4d 65 6e 75 20 | 51 75 69 74 20 48 79 70 |"doMenu |Quit Hyp|
|00002160| 65 72 43 61 72 64 22 20 | 74 6f 20 48 79 70 65 72 |erCard" |to Hyper|
|00002170| 43 61 72 64 0d 65 6e 64 | 20 47 6f 54 6f 53 6c 65 |Card.end| GoToSle|
|00002180| 65 70 0d 0d 2d 2d 09 4e | 41 4d 49 4e 47 20 74 68 |ep..--.N|AMING th|
|00002190| 69 6e 67 73 20 28 67 65 | 74 74 69 6e 67 2f 73 65 |ings (ge|tting/se|
|000021a0| 74 74 69 6e 67 29 0d 0d | 66 75 6e 63 74 69 6f 6e |tting)..|function|
|000021b0| 20 53 61 6d 65 52 6f 6f | 74 44 69 73 6b 0d 67 65 | SameRoo|tDisk.ge|
|000021c0| 74 20 74 68 65 20 69 74 | 65 6d 44 65 6c 69 6d 69 |t the it|emDelimi|
|000021d0| 74 65 72 0d 73 65 74 20 | 74 68 65 20 69 74 65 6d |ter.set |the item|
|000021e0| 44 65 6c 69 6d 69 74 65 | 72 20 74 6f 20 71 75 6f |Delimite|r to quo|
|000021f0| 74 65 0d 70 75 74 20 69 | 74 65 6d 20 32 20 6f 66 |te.put i|tem 2 of|
|00002200| 20 74 68 65 20 6c 6f 6e | 67 20 6e 61 6d 65 20 6f | the lon|g name o|
|00002210| 66 20 74 68 69 73 20 73 | 74 61 63 6b 20 69 6e 74 |f this s|tack int|
|00002220| 6f 20 66 75 6c 6c 50 61 | 74 68 4e 61 6d 65 0d 73 |o fullPa|thName.s|
|00002230| 65 74 20 74 68 65 20 69 | 74 65 6d 44 65 6c 69 6d |et the i|temDelim|
|00002240| 69 74 65 72 20 74 6f 20 | 22 3a 22 0d 70 75 74 20 |iter to |":".put |
|00002250| 69 74 65 6d 20 31 20 6f | 66 20 66 75 6c 6c 50 61 |item 1 o|f fullPa|
|00002260| 74 68 4e 61 6d 65 20 69 | 6e 74 6f 20 72 6f 6f 74 |thName i|nto root|
|00002270| 4e 61 6d 65 0d 70 75 74 | 20 6c 69 6e 65 20 31 20 |Name.put| line 1 |
|00002280| 6f 66 20 62 67 20 66 6c | 64 20 22 73 68 6f 77 6e |of bg fl|d "shown|
|00002290| 6f 74 65 73 22 20 6f 66 | 20 63 64 20 22 63 6f 6e |otes" of| cd "con|
|000022a0| 74 65 6e 74 73 22 20 69 | 6e 74 6f 20 6f 6c 64 52 |tents" i|nto oldR|
|000022b0| 6f 6f 74 4e 61 6d 65 0d | 73 65 74 20 74 68 65 20 |ootName.|set the |
|000022c0| 69 74 65 6d 44 65 6c 69 | 6d 69 74 65 72 20 74 6f |itemDeli|miter to|
|000022d0| 20 69 74 0d 69 66 20 72 | 6f 6f 74 4e 61 6d 65 20 | it.if r|ootName |
|000022e0| 69 73 20 6e 6f 74 20 6f | 6c 64 52 6f 6f 74 4e 61 |is not o|ldRootNa|
|000022f0| 6d 65 20 74 68 65 6e 0d | 70 75 74 20 72 6f 6f 74 |me then.|put root|
|00002300| 4e 61 6d 65 20 69 6e 74 | 6f 20 6c 69 6e 65 20 31 |Name int|o line 1|
|00002310| 20 6f 66 20 62 67 20 66 | 6c 64 20 22 73 68 6f 77 | of bg f|ld "show|
|00002320| 6e 6f 74 65 73 22 20 6f | 66 20 63 64 20 22 63 6f |notes" o|f cd "co|
|00002330| 6e 74 65 6e 74 73 22 0d | 72 65 74 75 72 6e 20 66 |ntents".|return f|
|00002340| 61 6c 73 65 0d 65 6c 73 | 65 20 72 65 74 75 72 6e |alse.els|e return|
|00002350| 20 74 72 75 65 0d 65 6e | 64 20 53 61 6d 65 52 6f | true.en|d SameRo|
|00002360| 6f 74 44 69 73 6b 0d 0d | 66 75 6e 63 74 69 6f 6e |otDisk..|function|
|00002370| 20 53 74 61 63 6b 4e 61 | 6d 65 0d 72 65 74 75 72 | StackNa|me.retur|
|00002380| 6e 20 74 68 65 20 73 68 | 6f 72 74 20 6e 61 6d 65 |n the sh|ort name|
|00002390| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 0d 65 | of this| stack.e|
|000023a0| 6e 64 20 53 74 61 63 6b | 4e 61 6d 65 0d 0d 66 75 |nd Stack|Name..fu|
|000023b0| 6e 63 74 69 6f 6e 20 53 | 65 63 74 69 6f 6e 4e 61 |nction S|ectionNa|
|000023c0| 6d 65 20 74 68 65 4e 61 | 6d 65 2c 74 68 65 43 61 |me theNa|me,theCa|
|000023d0| 72 64 0d 69 66 20 74 68 | 65 43 61 72 64 20 69 73 |rd.if th|eCard is|
|000023e0| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 70 75 74 20 | empty t|hen put |
|000023f0| 43 61 72 64 4e 75 6d 62 | 65 72 28 29 20 69 6e 74 |CardNumb|er() int|
|00002400| 6f 20 74 68 65 43 61 72 | 64 0d 69 66 20 74 68 65 |o theCar|d.if the|
|00002410| 72 65 20 69 73 20 6e 6f | 74 20 61 20 62 67 20 66 |re is no|t a bg f|
|00002420| 6c 64 20 22 73 65 63 74 | 69 6f 6e 20 6e 61 6d 65 |ld "sect|ion name|
|00002430| 22 20 6f 66 20 63 64 20 | 74 68 65 43 61 72 64 20 |" of cd |theCard |
|00002440| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 74 68 65 20 |then ret|urn the |
|00002450| 73 68 6f 72 74 20 6e 61 | 6d 65 20 6f 66 20 63 61 |short na|me of ca|
|00002460| 72 64 20 74 68 65 43 61 | 72 64 0d 69 66 20 74 68 |rd theCa|rd.if th|
|00002470| 65 4e 61 6d 65 20 69 73 | 20 6e 6f 74 20 65 6d 70 |eName is| not emp|
|00002480| 74 79 20 74 68 65 6e 20 | 70 75 74 20 74 68 65 4e |ty then |put theN|
|00002490| 61 6d 65 20 69 6e 74 6f | 20 62 67 20 66 6c 64 20 |ame into| bg fld |
|000024a0| 22 73 65 63 74 69 6f 6e | 20 6e 61 6d 65 22 20 6f |"section| name" o|
|000024b0| 66 20 63 64 20 74 68 65 | 43 61 72 64 0d 72 65 74 |f cd the|Card.ret|
|000024c0| 75 72 6e 20 62 67 20 66 | 6c 64 20 22 73 65 63 74 |urn bg f|ld "sect|
|000024d0| 69 6f 6e 20 6e 61 6d 65 | 22 20 6f 66 20 63 61 72 |ion name|" of car|
|000024e0| 64 20 74 68 65 43 61 72 | 64 0d 65 6e 64 20 53 65 |d theCar|d.end Se|
|000024f0| 63 74 69 6f 6e 4e 61 6d | 65 0d 0d 66 75 6e 63 74 |ctionNam|e..funct|
|00002500| 69 6f 6e 20 45 6e 64 4f | 66 53 65 63 74 69 6f 6e |ion EndO|fSection|
|00002510| 20 74 68 65 43 61 72 64 | 0d 69 66 20 74 68 65 43 | theCard|.if theC|
|00002520| 61 72 64 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 |ard is e|mpty the|
|00002530| 6e 20 70 75 74 20 43 61 | 72 64 4e 75 6d 62 65 72 |n put Ca|rdNumber|
|00002540| 28 29 20 69 6e 74 6f 20 | 74 68 65 43 61 72 64 0d |() into |theCard.|
|00002550| 69 66 20 53 65 63 74 69 | 6f 6e 4e 61 6d 65 28 2c |if Secti|onName(,|
|00002560| 74 68 65 43 61 72 64 29 | 20 69 73 20 6e 6f 74 20 |theCard)| is not |
|00002570| 53 65 63 74 69 6f 6e 4e | 61 6d 65 28 2c 4e 65 78 |SectionN|ame(,Nex|
|00002580| 74 50 61 67 65 28 74 68 | 65 43 61 72 64 29 29 20 |tPage(th|eCard)) |
|00002590| 74 68 65 6e 0d 72 65 74 | 75 72 6e 20 74 72 75 65 |then.ret|urn true|
|000025a0| 0d 65 6c 73 65 20 72 65 | 74 75 72 6e 20 66 61 6c |.else re|turn fal|
|000025b0| 73 65 0d 65 6e 64 20 45 | 6e 64 4f 66 53 65 63 74 |se.end E|ndOfSect|
|000025c0| 69 6f 6e 0d 0d 66 75 6e | 63 74 69 6f 6e 20 42 65 |ion..fun|ction Be|
|000025d0| 67 69 6e 6e 69 6e 67 4f | 66 53 65 63 74 69 6f 6e |ginningO|fSection|
|000025e0| 20 74 68 65 43 61 72 64 | 0d 69 66 20 74 68 65 43 | theCard|.if theC|
|000025f0| 61 72 64 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 |ard is e|mpty the|
|00002600| 6e 20 70 75 74 20 43 61 | 72 64 4e 75 6d 62 65 72 |n put Ca|rdNumber|
|00002610| 28 29 20 69 6e 74 6f 20 | 74 68 65 43 61 72 64 0d |() into |theCard.|
|00002620| 69 66 20 53 65 63 74 69 | 6f 6e 4e 61 6d 65 28 2c |if Secti|onName(,|
|00002630| 74 68 65 43 61 72 64 29 | 20 69 73 20 6e 6f 74 20 |theCard)| is not |
|00002640| 53 65 63 74 69 6f 6e 4e | 61 6d 65 28 2c 50 72 65 |SectionN|ame(,Pre|
|00002650| 76 50 61 67 65 28 74 68 | 65 43 61 72 64 29 29 20 |vPage(th|eCard)) |
|00002660| 74 68 65 6e 0d 72 65 74 | 75 72 6e 20 74 72 75 65 |then.ret|urn true|
|00002670| 0d 65 6c 73 65 20 72 65 | 74 75 72 6e 20 66 61 6c |.else re|turn fal|
|00002680| 73 65 0d 65 6e 64 20 42 | 65 67 69 6e 6e 69 6e 67 |se.end B|eginning|
|00002690| 4f 66 53 65 63 74 69 6f | 6e 0d 0d 66 75 6e 63 74 |OfSectio|n..funct|
|000026a0| 69 6f 6e 20 43 61 72 64 | 4e 61 6d 65 20 74 68 65 |ion Card|Name the|
|000026b0| 4e 61 6d 65 0d 69 66 20 | 74 68 65 4e 61 6d 65 20 |Name.if |theName |
|000026c0| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|000026d0| 6e 20 73 65 74 20 74 68 | 65 20 6e 61 6d 65 20 6f |n set th|e name o|
|000026e0| 66 20 74 68 69 73 20 63 | 61 72 64 20 74 6f 20 74 |f this c|ard to t|
|000026f0| 68 65 4e 61 6d 65 0d 72 | 65 74 75 72 6e 20 74 68 |heName.r|eturn th|
|00002700| 65 20 73 68 6f 72 74 20 | 6e 61 6d 65 20 6f 66 20 |e short |name of |
|00002710| 74 68 69 73 20 63 61 72 | 64 0d 65 6e 64 20 43 61 |this car|d.end Ca|
|00002720| 72 64 4e 61 6d 65 0d 0d | 66 75 6e 63 74 69 6f 6e |rdName..|function|
|00002730| 20 43 61 72 64 4e 75 6d | 62 65 72 0d 72 65 74 75 | CardNum|ber.retu|
|00002740| 72 6e 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |rn the n|umber of|
|00002750| 20 74 68 69 73 20 63 61 | 72 64 0d 65 6e 64 20 43 | this ca|rd.end C|
|00002760| 61 72 64 4e 75 6d 62 65 | 72 0d 0d 66 75 6e 63 74 |ardNumbe|r..funct|
|00002770| 69 6f 6e 20 50 61 67 65 | 4e 61 6d 65 20 74 68 65 |ion Page|Name the|
|00002780| 4e 61 6d 65 2c 74 68 65 | 43 61 72 64 0d 69 66 20 |Name,the|Card.if |
|00002790| 74 68 65 43 61 72 64 20 | 69 73 20 65 6d 70 74 79 |theCard |is empty|
|000027a0| 20 74 68 65 6e 20 70 75 | 74 20 43 61 72 64 4e 75 | then pu|t CardNu|
|000027b0| 6d 62 65 72 28 29 20 69 | 6e 74 6f 20 74 68 65 43 |mber() i|nto theC|
|000027c0| 61 72 64 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |ard.if t|here is |
|000027d0| 6e 6f 74 20 61 20 62 67 | 20 66 6c 64 20 22 70 61 |not a bg| fld "pa|
|000027e0| 67 65 20 6e 61 6d 65 22 | 20 6f 66 20 63 61 72 64 |ge name"| of card|
|000027f0| 20 74 68 65 43 61 72 64 | 20 74 68 65 6e 20 72 65 | theCard| then re|
|00002800| 74 75 72 6e 20 65 6d 70 | 74 79 0d 69 66 20 74 68 |turn emp|ty.if th|
|00002810| 65 4e 61 6d 65 20 69 73 | 20 6e 6f 74 20 65 6d 70 |eName is| not emp|
|00002820| 74 79 20 74 68 65 6e 20 | 70 75 74 20 74 68 65 4e |ty then |put theN|
|00002830| 61 6d 65 20 69 6e 74 6f | 20 62 67 20 66 6c 64 20 |ame into| bg fld |
|00002840| 22 70 61 67 65 20 6e 61 | 6d 65 22 20 6f 66 20 63 |"page na|me" of c|
|00002850| 61 72 64 20 74 68 65 43 | 61 72 64 0d 72 65 74 75 |ard theC|ard.retu|
|00002860| 72 6e 20 62 67 20 66 6c | 64 20 22 70 61 67 65 20 |rn bg fl|d "page |
|00002870| 6e 61 6d 65 22 20 6f 66 | 20 63 61 72 64 20 74 68 |name" of| card th|
|00002880| 65 43 61 72 64 0d 65 6e | 64 20 50 61 67 65 4e 61 |eCard.en|d PageNa|
|00002890| 6d 65 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 50 61 67 |me..func|tion Pag|
|000028a0| 65 4e 75 6d 62 65 72 20 | 74 68 65 4e 75 6d 62 65 |eNumber |theNumbe|
|000028b0| 72 2c 74 68 65 43 61 72 | 64 0d 69 66 20 74 68 65 |r,theCar|d.if the|
|000028c0| 43 61 72 64 20 69 73 20 | 65 6d 70 74 79 20 74 68 |Card is |empty th|
|000028d0| 65 6e 20 70 75 74 20 43 | 61 72 64 4e 75 6d 62 65 |en put C|ardNumbe|
|000028e0| 72 28 29 20 69 6e 74 6f | 20 74 68 65 43 61 72 64 |r() into| theCard|
|000028f0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 74 |.if ther|e is not|
|00002900| 20 61 20 62 67 20 66 6c | 64 20 22 70 61 67 65 20 | a bg fl|d "page |
|00002910| 6e 75 6d 62 65 72 22 20 | 6f 66 20 63 61 72 64 20 |number" |of card |
|00002920| 74 68 65 43 61 72 64 20 | 74 68 65 6e 20 72 65 74 |theCard |then ret|
|00002930| 75 72 6e 20 65 6d 70 74 | 79 0d 0d 69 66 20 74 68 |urn empt|y..if th|
|00002940| 65 4e 75 6d 62 65 72 20 | 69 73 20 6e 6f 74 20 65 |eNumber |is not e|
|00002950| 6d 70 74 79 0d 74 68 65 | 6e 20 70 75 74 20 74 68 |mpty.the|n put th|
|00002960| 65 4e 75 6d 62 65 72 20 | 69 6e 74 6f 20 62 67 20 |eNumber |into bg |
|00002970| 66 6c 64 20 22 70 61 67 | 65 20 6e 75 6d 62 65 72 |fld "pag|e number|
|00002980| 22 20 6f 66 20 63 61 72 | 64 20 74 68 65 43 61 72 |" of car|d theCar|
|00002990| 64 0d 72 65 74 75 72 6e | 20 62 67 20 66 6c 64 20 |d.return| bg fld |
|000029a0| 22 70 61 67 65 20 6e 75 | 6d 62 65 72 22 20 6f 66 |"page nu|mber" of|
|000029b0| 20 63 61 72 64 20 74 68 | 65 43 61 72 64 0d 65 6e | card th|eCard.en|
|000029c0| 64 20 50 61 67 65 4e 75 | 6d 62 65 72 0d 0d 6f 6e |d PageNu|mber..on|
|000029d0| 20 46 69 78 50 61 67 65 | 4e 75 6d 62 65 72 73 20 | FixPage|Numbers |
|000029e0| 74 68 65 43 61 72 64 0d | 70 75 74 20 74 68 65 20 |theCard.|put the |
|000029f0| 6e 75 6d 62 65 72 20 6f | 66 20 66 69 72 73 74 20 |number o|f first |
|00002a00| 63 61 72 64 20 6f 66 20 | 74 68 69 73 20 62 67 20 |card of |this bg |
|00002a10| 2d 20 31 20 69 6e 74 6f | 20 73 74 61 72 74 43 61 |- 1 into| startCa|
|00002a20| 72 64 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 |rd.repea|t with i|
|00002a30| 20 3d 20 74 68 65 43 61 | 72 64 20 74 6f 20 74 68 | = theCa|rd to th|
|00002a40| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 61 72 64 |e number| of card|
|00002a50| 73 20 6f 66 20 74 68 69 | 73 20 62 67 0d 67 65 74 |s of thi|s bg.get|
|00002a60| 20 50 61 67 65 4e 75 6d | 62 65 72 28 69 2c 28 69 | PageNum|ber(i,(i|
|00002a70| 2b 73 74 61 72 74 43 61 | 72 64 29 29 0d 65 6e 64 |+startCa|rd)).end|
|00002a80| 20 72 65 70 65 61 74 0d | 67 6c 6f 62 61 6c 20 67 | repeat.|global g|
|00002a90| 50 61 67 65 4e 75 6d 62 | 65 72 73 41 72 65 44 69 |PageNumb|ersAreDi|
|00002aa0| 72 74 79 0d 70 75 74 20 | 65 6d 70 74 79 20 69 6e |rty.put |empty in|
|00002ab0| 74 6f 20 67 50 61 67 65 | 4e 75 6d 62 65 72 73 41 |to gPage|NumbersA|
|00002ac0| 72 65 44 69 72 74 79 0d | 65 6e 64 20 46 69 78 50 |reDirty.|end FixP|
|00002ad0| 61 67 65 4e 75 6d 62 65 | 72 73 0d 0d 66 75 6e 63 |ageNumbe|rs..func|
|00002ae0| 74 69 6f 6e 20 50 72 65 | 76 50 61 67 65 20 74 68 |tion Pre|vPage th|
|00002af0| 65 50 61 67 65 0d 69 66 | 20 74 68 65 50 61 67 65 |ePage.if| thePage|
|00002b00| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 20 72 | is empt|y then r|
|00002b10| 65 74 75 72 6e 20 74 68 | 65 20 6e 75 6d 62 65 72 |eturn th|e number|
|00002b20| 20 6f 66 20 70 72 65 76 | 69 6f 75 73 20 63 61 72 | of prev|ious car|
|00002b30| 64 0d 73 75 62 74 72 61 | 63 74 20 31 20 66 72 6f |d.subtra|ct 1 fro|
|00002b40| 6d 20 74 68 65 50 61 67 | 65 0d 69 66 20 74 68 65 |m thePag|e.if the|
|00002b50| 50 61 67 65 20 3c 20 31 | 20 74 68 65 6e 0d 72 65 |Page < 1| then.re|
|00002b60| 74 75 72 6e 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |turn the| number |
|00002b70| 6f 66 20 6c 61 73 74 20 | 63 61 72 64 0d 65 6c 73 |of last |card.els|
|00002b80| 65 20 72 65 74 75 72 6e | 20 74 68 65 50 61 67 65 |e return| thePage|
|00002b90| 0d 65 6e 64 20 50 72 65 | 76 50 61 67 65 0d 0d 66 |.end Pre|vPage..f|
|00002ba0| 75 6e 63 74 69 6f 6e 20 | 4e 65 78 74 50 61 67 65 |unction |NextPage|
|00002bb0| 20 74 68 65 50 61 67 65 | 0d 69 66 20 74 68 65 50 | thePage|.if theP|
|00002bc0| 61 67 65 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 |age is e|mpty the|
|00002bd0| 6e 20 72 65 74 75 72 6e | 20 74 68 65 20 6e 75 6d |n return| the num|
|00002be0| 62 65 72 20 6f 66 20 6e | 65 78 74 20 63 61 72 64 |ber of n|ext card|
|00002bf0| 0d 61 64 64 20 31 20 74 | 6f 20 74 68 65 50 61 67 |.add 1 t|o thePag|
|00002c00| 65 0d 69 66 20 74 68 65 | 50 61 67 65 20 3e 20 74 |e.if the|Page > t|
|00002c10| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 61 72 |he numbe|r of car|
|00002c20| 64 73 20 74 68 65 6e 0d | 72 65 74 75 72 6e 20 31 |ds then.|return 1|
|00002c30| 0d 65 6c 73 65 20 72 65 | 74 75 72 6e 20 74 68 65 |.else re|turn the|
|00002c40| 50 61 67 65 0d 65 6e 64 | 20 4e 65 78 74 50 61 67 |Page.end| NextPag|
|00002c50| 65 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 49 73 46 6c |e..funct|ion IsFl|
|00002c60| 6f 77 46 69 65 6c 64 20 | 74 68 65 46 69 65 6c 64 |owField |theField|
|00002c70| 2c 62 67 46 6c 64 2c 74 | 68 65 43 61 72 64 0d 69 |,bgFld,t|heCard.i|
|00002c80| 66 20 62 67 46 6c 64 20 | 69 73 20 65 6d 70 74 79 |f bgFld |is empty|
|00002c90| 20 74 68 65 6e 20 70 75 | 74 20 22 62 67 22 20 69 | then pu|t "bg" i|
|00002ca0| 6e 74 6f 20 62 67 46 6c | 64 0d 69 66 20 74 68 65 |nto bgFl|d.if the|
|00002cb0| 43 61 72 64 20 69 73 20 | 65 6d 70 74 79 20 74 68 |Card is |empty th|
|00002cc0| 65 6e 20 70 75 74 20 74 | 68 65 20 6e 75 6d 62 65 |en put t|he numbe|
|00002cd0| 72 20 6f 66 20 74 68 69 | 73 20 63 61 72 64 20 69 |r of thi|s card i|
|00002ce0| 6e 74 6f 20 74 68 65 43 | 61 72 64 0d 0d 69 66 20 |nto theC|ard..if |
|00002cf0| 74 68 65 46 69 65 6c 64 | 20 69 73 20 61 20 6e 75 |theField| is a nu|
|00002d00| 6d 62 65 72 0d 74 68 65 | 6e 20 70 75 74 20 74 68 |mber.the|n put th|
|00002d10| 65 20 73 68 6f 72 74 20 | 6e 61 6d 65 20 6f 66 20 |e short |name of |
|00002d20| 28 62 67 46 6c 64 26 26 | 22 66 6c 64 22 26 26 74 |(bgFld&&|"fld"&&t|
|00002d30| 68 65 46 69 65 6c 64 26 | 26 22 6f 66 20 63 61 72 |heField&|&"of car|
|00002d40| 64 22 26 26 74 68 65 43 | 61 72 64 29 20 69 6e 74 |d"&&theC|ard) int|
|00002d50| 6f 20 74 68 65 46 69 65 | 6c 64 0d 72 65 74 75 72 |o theFie|ld.retur|
|00002d60| 6e 20 74 68 65 46 69 65 | 6c 64 20 63 6f 6e 74 61 |n theFie|ld conta|
|00002d70| 69 6e 73 20 22 66 6c 6f | 77 22 0d 65 6e 64 20 49 |ins "flo|w".end I|
|00002d80| 73 46 6c 6f 77 46 69 65 | 6c 64 0d 0d 2d 2d 09 43 |sFlowFie|ld..--.C|
|00002d90| 4f 4e 54 45 4e 54 53 20 | 74 68 69 6e 67 73 0d 66 |ONTENTS |things.f|
|00002da0| 75 6e 63 74 69 6f 6e 20 | 43 6f 6e 74 65 6e 74 73 |unction |Contents|
|00002db0| 4c 69 73 74 0d 72 65 74 | 75 72 6e 20 62 67 20 66 |List.ret|urn bg f|
|00002dc0| 6c 64 20 22 63 6f 6e 74 | 65 6e 74 73 22 20 6f 66 |ld "cont|ents" of|
|00002dd0| 20 63 64 20 22 63 6f 6e | 74 65 6e 74 73 22 0d 65 | cd "con|tents".e|
|00002de0| 6e 64 20 43 6f 6e 74 65 | 6e 74 73 4c 69 73 74 0d |nd Conte|ntsList.|
|00002df0| 0d 66 75 6e 63 74 69 6f | 6e 20 43 6f 6e 74 65 6e |.functio|n Conten|
|00002e00| 74 73 46 69 65 6c 64 0d | 72 65 74 75 72 6e 20 22 |tsField.|return "|
|00002e10| 62 67 20 66 6c 64 20 22 | 26 71 75 6f 74 65 26 22 |bg fld "|&quote&"|
|00002e20| 63 6f 6e 74 65 6e 74 73 | 22 26 71 75 6f 74 65 26 |contents|"&quote&|
|00002e30| 22 20 6f 66 20 63 64 20 | 22 26 71 75 6f 74 65 26 |" of cd |"&quote&|
|00002e40| 22 63 6f 6e 74 65 6e 74 | 73 22 26 71 75 6f 74 65 |"content|s"&quote|
|00002e50| 0d 65 6e 64 20 43 6f 6e | 74 65 6e 74 73 46 69 65 |.end Con|tentsFie|
|00002e60| 6c 64 0d 0d 6f 6e 20 43 | 6f 6e 74 65 6e 74 73 43 |ld..on C|ontentsC|
|00002e70| 6c 69 63 6b 20 77 68 69 | 63 68 4c 69 6e 65 0d 69 |lick whi|chLine.i|
|00002e80| 66 20 77 68 69 63 68 4c | 69 6e 65 20 69 73 20 65 |f whichL|ine is e|
|00002e90| 6d 70 74 79 20 74 68 65 | 6e 20 70 75 74 20 77 6f |mpty the|n put wo|
|00002ea0| 72 64 20 32 20 6f 66 20 | 74 68 65 20 63 6c 69 63 |rd 2 of |the clic|
|00002eb0| 6b 6c 69 6e 65 20 69 6e | 74 6f 20 77 68 69 63 68 |kline in|to which|
|00002ec0| 4c 69 6e 65 0d 70 75 74 | 20 53 74 72 69 70 53 70 |Line.put| StripSp|
|00002ed0| 61 63 65 73 28 6c 69 6e | 65 20 77 68 69 63 68 4c |aces(lin|e whichL|
|00002ee0| 69 6e 65 20 6f 66 20 43 | 6f 6e 74 65 6e 74 73 4c |ine of C|ontentsL|
|00002ef0| 69 73 74 28 29 29 20 69 | 6e 74 6f 20 74 68 65 43 |ist()) i|nto theC|
|00002f00| 61 72 64 0d 73 65 74 20 | 74 68 65 20 74 65 78 74 |ard.set |the text|
|00002f10| 53 74 79 6c 65 20 6f 66 | 20 6c 69 6e 65 20 31 20 |Style of| line 1 |
|00002f20| 74 6f 20 28 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |to (the |number o|
|00002f30| 66 20 6c 69 6e 65 73 20 | 6f 66 20 74 61 72 67 65 |f lines |of targe|
|00002f40| 74 29 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 |t) of th|e target|
|00002f50| 20 74 6f 20 70 6c 61 69 | 6e 0d 73 65 74 20 74 68 | to plai|n.set th|
|00002f60| 65 20 74 65 78 74 53 74 | 79 6c 65 20 6f 66 20 6c |e textSt|yle of l|
|00002f70| 69 6e 65 20 77 68 69 63 | 68 4c 69 6e 65 20 6f 66 |ine whic|hLine of|
|00002f80| 20 74 68 65 20 74 61 72 | 67 65 74 20 74 6f 20 22 | the tar|get to "|
|00002f90| 75 6e 64 65 72 6c 69 6e | 65 22 0d 47 6f 50 61 67 |underlin|e".GoPag|
|00002fa0| 65 20 74 68 65 43 61 72 | 64 2c 20 22 7a 6f 6f 6d |e theCar|d, "zoom|
|00002fb0| 20 6f 75 74 22 0d 65 6e | 64 20 43 6f 6e 74 65 6e | out".en|d Conten|
|00002fc0| 74 73 43 6c 69 63 6b 0d | 0d 6f 6e 20 46 6c 65 73 |tsClick.|.on Fles|
|00002fd0| 68 4f 75 74 43 6f 6e 74 | 65 6e 74 73 0d 70 75 74 |hOutCont|ents.put|
|00002fe0| 20 43 6f 6e 74 65 6e 74 | 73 4c 69 73 74 28 29 20 | Content|sList() |
|00002ff0| 69 6e 74 6f 20 74 68 65 | 4c 69 73 74 0d 70 75 74 |into the|List.put|
|00003000| 20 74 68 65 20 73 68 6f | 72 74 20 6e 61 6d 65 20 | the sho|rt name |
|00003010| 6f 66 20 74 68 69 73 20 | 63 61 72 64 20 69 6e 74 |of this |card int|
|00003020| 6f 20 74 68 65 43 61 72 | 64 0d 67 6c 6f 62 61 6c |o theCar|d.global|
|00003030| 20 67 41 72 74 69 63 6c | 65 46 69 65 6c 64 73 2c | gArticl|eFields,|
|00003040| 67 54 68 69 73 50 75 62 | 6c 69 63 61 74 69 6f 6e |gThisPub|lication|
|00003050| 0d 70 75 74 20 6c 69 6e | 65 20 67 54 68 69 73 50 |.put lin|e gThisP|
|00003060| 75 62 6c 69 63 61 74 69 | 6f 6e 20 6f 66 20 67 41 |ublicati|on of gA|
|00003070| 72 74 69 63 6c 65 46 69 | 65 6c 64 73 20 69 6e 74 |rticleFi|elds int|
|00003080| 6f 20 61 72 74 69 63 6c | 65 4e 61 6d 65 0d 72 65 |o articl|eName.re|
|00003090| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 31 20 |peat wit|h i = 1 |
|000030a0| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |to the n|umber of|
|000030b0| 20 6c 69 6e 65 73 20 6f | 66 20 74 68 65 4c 69 73 | lines o|f theLis|
|000030c0| 74 0d 70 75 74 20 53 74 | 72 69 70 53 70 61 63 65 |t.put St|ripSpace|
|000030d0| 73 28 6c 69 6e 65 20 69 | 20 6f 66 20 74 68 65 4c |s(line i| of theL|
|000030e0| 69 73 74 29 20 69 6e 74 | 6f 20 74 68 65 4e 61 6d |ist) int|o theNam|
|000030f0| 65 0d 69 66 20 6c 69 6e | 65 20 69 20 6f 66 20 74 |e.if lin|e i of t|
|00003100| 68 65 4c 69 73 74 20 69 | 73 20 74 68 69 73 43 61 |heList i|s thisCa|
|00003110| 72 64 20 74 68 65 6e 20 | 6e 65 78 74 20 72 65 70 |rd then |next rep|
|00003120| 65 61 74 0d 0d 73 65 6e | 64 20 22 64 6f 4d 65 6e |eat..sen|d "doMen|
|00003130| 75 20 4e 65 77 20 43 61 | 72 64 22 20 74 6f 20 48 |u New Ca|rd" to H|
|00003140| 79 70 65 72 43 61 72 64 | 0d 73 65 74 20 74 68 65 |yperCard|.set the|
|00003150| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 63 61 | name of| this ca|
|00003160| 72 64 20 74 6f 20 74 68 | 65 4e 61 6d 65 0d 67 65 |rd to th|eName.ge|
|00003170| 74 20 50 61 67 65 4e 61 | 6d 65 28 74 68 65 4e 61 |t PageNa|me(theNa|
|00003180| 6d 65 29 0d 44 69 72 74 | 79 50 61 67 65 4e 75 6d |me).Dirt|yPageNum|
|00003190| 62 65 72 73 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |bers.end| repeat.|
|000031a0| 65 6e 64 20 46 6c 65 73 | 68 4f 75 74 43 6f 6e 74 |end Fles|hOutCont|
|000031b0| 65 6e 74 73 0d 0d 6f 6e | 20 4e 65 78 74 43 6c 69 |ents..on| NextCli|
|000031c0| 63 6b 0d 47 6f 4e 65 78 | 74 0d 65 6e 64 20 4e 65 |ck.GoNex|t.end Ne|
|000031d0| 78 74 43 6c 69 63 6b 0d | 0d 6f 6e 20 50 72 65 76 |xtClick.|.on Prev|
|000031e0| 43 6c 69 63 6b 0d 47 6f | 50 72 65 76 0d 65 6e 64 |Click.Go|Prev.end|
|000031f0| 20 50 72 65 76 43 6c 69 | 63 6b 0d 0d 2d 2d 0d 0d | PrevCli|ck..--..|
|00003200| 66 75 6e 63 74 69 6f 6e | 20 53 68 6f 77 69 6e 67 |function| Showing|
|00003210| 4e 6f 74 65 73 0d 72 65 | 74 75 72 6e 20 6c 69 6e |Notes.re|turn lin|
|00003220| 65 20 32 20 6f 66 20 62 | 67 20 66 6c 64 20 22 73 |e 2 of b|g fld "s|
|00003230| 68 6f 77 6e 6f 74 65 73 | 22 20 6f 66 20 63 64 20 |hownotes|" of cd |
|00003240| 22 63 6f 6e 74 65 6e 74 | 73 22 20 69 73 20 6e 6f |"content|s" is no|
|00003250| 74 20 22 66 61 6c 73 65 | 22 0d 65 6e 64 20 53 68 |t "false|".end Sh|
|00003260| 6f 77 69 6e 67 4e 6f 74 | 65 73 0d 0d 6f 6e 20 53 |owingNot|es..on S|
|00003270| 68 6f 77 4e 6f 74 65 73 | 20 74 68 65 53 74 61 74 |howNotes| theStat|
|00003280| 65 0d 69 66 20 74 68 65 | 53 74 61 74 65 20 69 73 |e.if the|State is|
|00003290| 20 6e 6f 74 20 66 61 6c | 73 65 20 74 68 65 6e 20 | not fal|se then |
|000032a0| 70 75 74 20 74 72 75 65 | 20 69 6e 74 6f 20 74 68 |put true| into th|
|000032b0| 65 53 74 61 74 65 0d 0d | 70 75 74 20 74 68 65 20 |eState..|put the |
|000032c0| 72 65 63 74 20 6f 66 20 | 63 61 72 64 20 77 69 6e |rect of |card win|
|000032d0| 64 6f 77 20 69 6e 74 6f | 20 74 68 65 52 65 63 74 |dow into| theRect|
|000032e0| 0d 69 66 20 74 68 65 53 | 74 61 74 65 20 74 68 65 |.if theS|tate the|
|000032f0| 6e 0d 68 69 64 65 20 62 | 67 20 62 74 6e 20 22 53 |n.hide b|g btn "S|
|00003300| 68 6f 77 4e 6f 74 65 73 | 22 0d 73 68 6f 77 20 62 |howNotes|".show b|
|00003310| 67 20 62 74 6e 20 22 48 | 69 64 65 4e 6f 74 65 73 |g btn "H|ideNotes|
|00003320| 22 0d 67 65 74 20 69 74 | 65 6d 20 31 20 6f 66 20 |".get it|em 1 of |
|00003330| 74 68 65 52 65 63 74 20 | 2b 20 35 31 32 0d 69 66 |theRect |+ 512.if|
|00003340| 20 69 74 20 3e 20 69 74 | 65 6d 20 33 20 6f 66 20 | it > it|em 3 of |
|00003350| 74 68 65 20 73 63 72 65 | 65 6e 52 65 63 74 20 74 |the scre|enRect t|
|00003360| 68 65 6e 0d 70 75 74 20 | 69 74 65 6d 20 33 20 6f |hen.put |item 3 o|
|00003370| 66 20 74 68 65 20 73 63 | 72 65 65 6e 52 65 63 74 |f the sc|reenRect|
|00003380| 20 69 6e 74 6f 20 69 74 | 65 6d 20 33 20 6f 66 20 | into it|em 3 of |
|00003390| 74 68 65 52 65 63 74 0d | 70 75 74 20 69 74 65 6d |theRect.|put item|
|000033a0| 20 33 20 6f 66 20 74 68 | 65 52 65 63 74 20 2d 20 | 3 of th|eRect - |
|000033b0| 35 31 32 20 69 6e 74 6f | 20 69 74 65 6d 20 31 20 |512 into| item 1 |
|000033c0| 6f 66 20 74 68 65 52 65 | 63 74 0d 65 6c 73 65 20 |of theRe|ct.else |
|000033d0| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 69 74 65 6d |put it i|nto item|
|000033e0| 20 33 20 6f 66 20 74 68 | 65 52 65 63 74 0d 69 66 | 3 of th|eRect.if|
|000033f0| 20 74 68 65 72 65 20 69 | 73 20 61 20 6d 65 6e 75 | there i|s a menu|
|00003400| 49 74 65 6d 20 22 53 68 | 6f 77 20 4e 6f 74 65 73 |Item "Sh|ow Notes|
|00003410| 22 20 6f 66 20 6d 65 6e | 75 20 22 45 64 69 74 22 |" of men|u "Edit"|
|00003420| 0d 74 68 65 6e 20 73 65 | 74 20 74 68 65 20 6e 61 |.then se|t the na|
|00003430| 6d 65 20 6f 66 20 6d 65 | 6e 75 49 74 65 6d 20 22 |me of me|nuItem "|
|00003440| 53 68 6f 77 20 4e 6f 74 | 65 73 22 20 6f 66 20 6d |Show Not|es" of m|
|00003450| 65 6e 75 20 22 45 64 69 | 74 22 20 74 6f 20 22 48 |enu "Edi|t" to "H|
|00003460| 69 64 65 20 4e 6f 74 65 | 73 22 0d 70 75 74 20 74 |ide Note|s".put t|
|00003470| 72 75 65 20 69 6e 74 6f | 20 6c 69 6e 65 20 32 20 |rue into| line 2 |
|00003480| 6f 66 20 62 67 20 66 6c | 64 20 22 73 68 6f 77 6e |of bg fl|d "shown|
|00003490| 6f 74 65 73 22 20 6f 66 | 20 63 64 20 22 63 6f 6e |otes" of| cd "con|
|000034a0| 74 65 6e 74 73 22 0d 65 | 6c 73 65 0d 68 69 64 65 |tents".e|lse.hide|
|000034b0| 20 62 67 20 62 74 6e 20 | 22 48 69 64 65 4e 6f 74 | bg btn |"HideNot|
|000034c0| 65 73 22 0d 67 65 74 20 | 69 74 65 6d 20 31 20 6f |es".get |item 1 o|
|000034d0| 66 20 74 68 65 52 65 63 | 74 20 2b 20 33 35 32 0d |f theRec|t + 352.|
|000034e0| 69 66 20 69 74 20 3e 20 | 69 74 65 6d 20 33 20 6f |if it > |item 3 o|
|000034f0| 66 20 74 68 65 20 73 63 | 72 65 65 6e 52 65 63 74 |f the sc|reenRect|
|00003500| 20 74 68 65 6e 0d 70 75 | 74 20 69 74 65 6d 20 33 | then.pu|t item 3|
|00003510| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 52 65 | of the |screenRe|
|00003520| 63 74 20 69 6e 74 6f 20 | 69 74 65 6d 20 33 20 6f |ct into |item 3 o|
|00003530| 66 20 74 68 65 52 65 63 | 74 0d 70 75 74 20 69 74 |f theRec|t.put it|
|00003540| 65 6d 20 33 20 6f 66 20 | 74 68 65 52 65 63 74 20 |em 3 of |theRect |
|00003550| 2d 20 33 35 32 20 69 6e | 74 6f 20 69 74 65 6d 20 |- 352 in|to item |
|00003560| 31 20 6f 66 20 74 68 65 | 52 65 63 74 0d 65 6c 73 |1 of the|Rect.els|
|00003570| 65 20 70 75 74 20 69 74 | 20 69 6e 74 6f 20 69 74 |e put it| into it|
|00003580| 65 6d 20 33 20 6f 66 20 | 74 68 65 52 65 63 74 0d |em 3 of |theRect.|
|00003590| 73 68 6f 77 20 62 67 20 | 62 74 6e 20 22 53 68 6f |show bg |btn "Sho|
|000035a0| 77 4e 6f 74 65 73 22 0d | 69 66 20 74 68 65 72 65 |wNotes".|if there|
|000035b0| 20 69 73 20 61 20 6d 65 | 6e 75 49 74 65 6d 20 22 | is a me|nuItem "|
|000035c0| 48 69 64 65 20 4e 6f 74 | 65 73 22 20 6f 66 20 6d |Hide Not|es" of m|
|000035d0| 65 6e 75 20 22 45 64 69 | 74 22 0d 74 68 65 6e 20 |enu "Edi|t".then |
|000035e0| 73 65 74 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |set the |name of |
|000035f0| 6d 65 6e 75 49 74 65 6d | 20 22 48 69 64 65 20 4e |menuItem| "Hide N|
|00003600| 6f 74 65 73 22 20 6f 66 | 20 6d 65 6e 75 20 22 45 |otes" of| menu "E|
|00003610| 64 69 74 22 20 74 6f 20 | 22 53 68 6f 77 20 4e 6f |dit" to |"Show No|
|00003620| 74 65 73 22 0d 70 75 74 | 20 66 61 6c 73 65 20 69 |tes".put| false i|
|00003630| 6e 74 6f 20 6c 69 6e 65 | 20 32 20 6f 66 20 62 67 |nto line| 2 of bg|
|00003640| 20 66 6c 64 20 22 73 68 | 6f 77 6e 6f 74 65 73 22 | fld "sh|ownotes"|
|00003650| 20 6f 66 20 63 64 20 22 | 63 6f 6e 74 65 6e 74 73 | of cd "|contents|
|00003660| 22 0d 65 6e 64 20 69 66 | 0d 69 66 20 69 74 65 6d |".end if|.if item|
|00003670| 20 34 20 6f 66 20 74 68 | 65 20 73 63 72 65 65 6e | 4 of th|e screen|
|00003680| 52 65 63 74 20 3c 20 33 | 34 33 20 74 68 65 6e 0d |Rect < 3|43 then.|
|00003690| 70 75 74 20 32 32 20 69 | 6e 74 6f 20 69 74 65 6d |put 22 i|nto item|
|000036a0| 20 32 20 6f 66 20 74 68 | 65 52 65 63 74 0d 70 75 | 2 of th|eRect.pu|
|000036b0| 74 20 33 34 32 20 69 6e | 74 6f 20 69 74 65 6d 20 |t 342 in|to item |
|000036c0| 34 20 6f 66 20 74 68 65 | 52 65 63 74 0d 65 6e 64 |4 of the|Rect.end|
|000036d0| 20 69 66 0d 73 65 74 20 | 74 68 65 20 72 65 63 74 | if.set |the rect|
|000036e0| 20 6f 66 20 63 61 72 64 | 20 77 69 6e 64 6f 77 20 | of card| window |
|000036f0| 74 6f 20 74 68 65 52 65 | 63 74 0d 65 6e 64 20 53 |to theRe|ct.end S|
|00003700| 68 6f 77 4e 6f 74 65 73 | 0d 0d 6f 6e 20 48 69 64 |howNotes|..on Hid|
|00003710| 65 4e 6f 74 65 73 0d 53 | 68 6f 77 4e 6f 74 65 73 |eNotes.S|howNotes|
|00003720| 20 66 61 6c 73 65 0d 65 | 6e 64 20 48 69 64 65 4e | false.e|nd HideN|
|00003730| 6f 74 65 73 0d 0d 6f 6e | 20 53 68 6f 77 42 6f 6f |otes..on| ShowBoo|
|00003740| 6b 4d 61 72 6b 0d 69 66 | 20 74 68 65 72 65 20 69 |kMark.if| there i|
|00003750| 73 20 6e 6f 74 20 61 20 | 62 67 20 62 74 6e 20 22 |s not a |bg btn "|
|00003760| 42 6f 6f 6b 4d 61 72 6b | 22 20 74 68 65 6e 20 65 |BookMark|" then e|
|00003770| 78 69 74 20 53 68 6f 77 | 42 6f 6f 6b 4d 61 72 6b |xit Show|BookMark|
|00003780| 0d 69 66 20 74 68 65 20 | 6d 61 72 6b 65 64 20 6f |.if the |marked o|
|00003790| 66 20 74 68 69 73 20 63 | 61 72 64 20 74 68 65 6e |f this c|ard then|
|000037a0| 0d 73 65 74 20 74 68 65 | 20 69 63 6f 6e 20 6f 66 |.set the| icon of|
|000037b0| 20 62 67 20 62 74 6e 20 | 22 42 6f 6f 6b 4d 61 72 | bg btn |"BookMar|
|000037c0| 6b 22 20 74 6f 20 4d 61 | 72 6b 65 64 42 6f 6f 6b |k" to Ma|rkedBook|
|000037d0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 6d |.if ther|e is a m|
|000037e0| 65 6e 75 49 74 65 6d 20 | 22 53 65 74 20 42 6f 6f |enuItem |"Set Boo|
|000037f0| 6b 6d 61 72 6b 22 20 6f | 66 20 6d 65 6e 75 20 22 |kmark" o|f menu "|
|00003800| 45 64 69 74 22 20 74 68 | 65 6e 0d 73 65 74 20 74 |Edit" th|en.set t|
|00003810| 68 65 20 6e 61 6d 65 20 | 6f 66 20 6d 65 6e 75 49 |he name |of menuI|
|00003820| 74 65 6d 20 22 53 65 74 | 20 42 6f 6f 6b 6d 61 72 |tem "Set| Bookmar|
|00003830| 6b 22 20 6f 66 20 6d 65 | 6e 75 20 22 45 64 69 74 |k" of me|nu "Edit|
|00003840| 22 20 74 6f 20 22 43 6c | 65 61 72 20 42 6f 6f 6b |" to "Cl|ear Book|
|00003850| 6d 61 72 6b 22 0d 65 6e | 64 20 69 66 0d 65 6c 73 |mark".en|d if.els|
|00003860| 65 0d 73 65 74 20 74 68 | 65 20 69 63 6f 6e 20 6f |e.set th|e icon o|
|00003870| 66 20 62 67 20 62 74 6e | 20 22 42 6f 6f 6b 4d 61 |f bg btn| "BookMa|
|00003880| 72 6b 22 20 74 6f 20 55 | 6e 4d 61 72 6b 65 64 42 |rk" to U|nMarkedB|
|00003890| 6f 6f 6b 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |ook.if t|here is |
|000038a0| 61 20 6d 65 6e 75 49 74 | 65 6d 20 22 43 6c 65 61 |a menuIt|em "Clea|
|000038b0| 72 20 42 6f 6f 6b 6d 61 | 72 6b 22 20 6f 66 20 6d |r Bookma|rk" of m|
|000038c0| 65 6e 75 20 22 45 64 69 | 74 22 20 74 68 65 6e 0d |enu "Edi|t" then.|
|000038d0| 73 65 74 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |set the |name of |
|000038e0| 6d 65 6e 75 49 74 65 6d | 20 22 43 6c 65 61 72 20 |menuItem| "Clear |
|000038f0| 42 6f 6f 6b 6d 61 72 6b | 22 20 6f 66 20 6d 65 6e |Bookmark|" of men|
|00003900| 75 20 22 45 64 69 74 22 | 20 74 6f 20 22 53 65 74 |u "Edit"| to "Set|
|00003910| 20 42 6f 6f 6b 6d 61 72 | 6b 22 0d 65 6e 64 20 69 | Bookmar|k".end i|
|00003920| 66 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 53 68 6f |f.end if|.end Sho|
|00003930| 77 42 6f 6f 6b 4d 61 72 | 6b 0d 0d 6f 6e 20 42 6f |wBookMar|k..on Bo|
|00003940| 6f 6b 4d 61 72 6b 0d 73 | 65 74 20 74 68 65 20 6d |okMark.s|et the m|
|00003950| 61 72 6b 65 64 20 6f 66 | 20 74 68 69 73 20 63 61 |arked of| this ca|
|00003960| 72 64 20 74 6f 20 6e 6f | 74 20 74 68 65 20 6d 61 |rd to no|t the ma|
|00003970| 72 6b 65 64 20 6f 66 20 | 74 68 69 73 20 63 61 72 |rked of |this car|
|00003980| 64 0d 53 68 6f 77 42 6f | 6f 6b 4d 61 72 6b 0d 65 |d.ShowBo|okMark.e|
|00003990| 6e 64 20 42 6f 6f 6b 4d | 61 72 6b 0d 0d 6f 6e 20 |nd BookM|ark..on |
|000039a0| 47 6f 42 6f 6f 6b 4d 61 | 72 6b 20 67 6f 4e 65 78 |GoBookMa|rk goNex|
|000039b0| 74 0d 69 66 20 67 6f 4e | 65 78 74 20 69 73 20 6e |t.if goN|ext is n|
|000039c0| 6f 74 20 66 61 6c 73 65 | 20 74 68 65 6e 20 70 75 |ot false| then pu|
|000039d0| 74 20 74 72 75 65 20 69 | 6e 74 6f 20 67 6f 4e 65 |t true i|nto goNe|
|000039e0| 78 74 0d 69 66 20 74 68 | 65 20 6f 70 74 69 6f 6e |xt.if th|e option|
|000039f0| 6b 65 79 20 69 73 20 64 | 6f 77 6e 20 74 68 65 6e |key is d|own then|
|00003a00| 20 70 75 74 20 66 61 6c | 73 65 20 69 6e 74 6f 20 | put fal|se into |
|00003a10| 67 6f 4e 65 78 74 0d 72 | 65 70 65 61 74 0d 6c 6f |goNext.r|epeat.lo|
|00003a20| 63 6b 20 73 63 72 65 65 | 6e 0d 69 66 20 67 6f 4e |ck scree|n.if goN|
|00003a30| 65 78 74 20 74 68 65 6e | 0d 67 6f 20 6e 65 78 74 |ext then|.go next|
|00003a40| 20 6d 61 72 6b 65 64 20 | 63 61 72 64 0d 65 6c 73 | marked |card.els|
|00003a50| 65 20 67 6f 20 70 72 65 | 76 69 6f 75 73 20 6d 61 |e go pre|vious ma|
|00003a60| 72 6b 65 64 20 63 61 72 | 64 0d 75 6e 6c 6f 63 6b |rked car|d.unlock|
|00003a70| 20 73 63 72 65 65 6e 20 | 77 69 74 68 20 76 69 73 | screen |with vis|
|00003a80| 75 61 6c 20 65 66 66 65 | 63 74 20 7a 6f 6f 6d 20 |ual effe|ct zoom |
|00003a90| 6f 75 74 0d 69 66 20 74 | 68 65 20 6d 6f 75 73 65 |out.if t|he mouse|
|00003aa0| 20 69 73 20 75 70 20 74 | 68 65 6e 20 65 78 69 74 | is up t|hen exit|
|00003ab0| 20 72 65 70 65 61 74 0d | 69 66 20 74 68 65 20 6d | repeat.|if the m|
|00003ac0| 6f 75 73 65 4c 6f 63 20 | 69 73 20 6e 6f 74 20 77 |ouseLoc |is not w|
|00003ad0| 69 74 68 69 6e 20 74 68 | 65 20 72 65 63 74 20 6f |ithin th|e rect o|
|00003ae0| 66 20 74 68 65 20 74 61 | 72 67 65 74 20 74 68 65 |f the ta|rget the|
|00003af0| 6e 20 65 78 69 74 20 72 | 65 70 65 61 74 0d 65 6e |n exit r|epeat.en|
|00003b00| 64 20 72 65 70 65 61 74 | 0d 65 6e 64 20 47 6f 42 |d repeat|.end GoB|
|00003b10| 6f 6f 6b 4d 61 72 6b 0d | 0d 6f 6e 20 47 6f 50 72 |ookMark.|.on GoPr|
|00003b20| 65 76 42 6f 6f 6b 4d 61 | 72 6b 0d 47 6f 42 6f 6f |evBookMa|rk.GoBoo|
|00003b30| 6b 4d 61 72 6b 20 66 61 | 6c 73 65 0d 65 6e 64 20 |kMark fa|lse.end |
|00003b40| 47 6f 50 72 65 76 42 6f | 6f 6b 4d 61 72 6b 0d 0d |GoPrevBo|okMark..|
|00003b50| 6f 6e 20 43 6c 65 61 72 | 42 6f 6f 6b 4d 61 72 6b |on Clear|BookMark|
|00003b60| 73 0d 75 6e 6d 61 72 6b | 20 61 6c 6c 20 63 61 72 |s.unmark| all car|
|00003b70| 64 73 0d 65 6e 64 20 43 | 6c 65 61 72 42 6f 6f 6b |ds.end C|learBook|
|00003b80| 4d 61 72 6b 73 0d 0d 6f | 6e 20 45 78 70 6f 72 74 |Marks..o|n Export|
|00003b90| 41 6c 6c 42 6f 6f 6b 54 | 65 78 74 0d 61 73 6b 20 |AllBookT|ext.ask |
|00003ba0| 66 69 6c 65 20 22 46 69 | 6c 65 6e 61 6d 65 20 74 |file "Fi|lename t|
|00003bb0| 6f 20 65 78 70 6f 72 74 | 20 74 6f 3f 22 20 77 69 |o export| to?" wi|
|00003bc0| 74 68 20 c2 0d 74 68 65 | 20 73 68 6f 72 74 20 6e |th ..the| short n|
|00003bd0| 61 6d 65 20 6f 66 20 74 | 68 69 73 20 73 74 61 63 |ame of t|his stac|
|00003be0| 6b 20 26 26 20 22 28 74 | 65 78 74 29 22 0d 69 66 |k && "(t|ext)".if|
|00003bf0| 20 69 74 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 | it is e|mpty the|
|00003c00| 6e 20 65 78 69 74 20 45 | 78 70 6f 72 74 41 6c 6c |n exit E|xportAll|
|00003c10| 42 6f 6f 6b 54 65 78 74 | 0d 67 6c 6f 62 61 6c 20 |BookText|.global |
|00003c20| 67 4f 70 65 6e 46 69 6c | 65 4e 61 6d 65 0d 70 75 |gOpenFil|eName.pu|
|00003c30| 74 20 69 74 20 69 6e 74 | 6f 20 67 4f 70 65 6e 46 |t it int|o gOpenF|
|00003c40| 69 6c 65 4e 61 6d 65 0d | 6f 70 65 6e 20 66 69 6c |ileName.|open fil|
|00003c50| 65 20 67 4f 70 65 6e 46 | 69 6c 65 4e 61 6d 65 0d |e gOpenF|ileName.|
|00003c60| 0d 70 75 73 68 20 63 61 | 72 64 0d 73 65 74 20 74 |.push ca|rd.set t|
|00003c70| 68 65 20 6c 6f 63 6b 73 | 63 72 65 65 6e 20 74 6f |he locks|creen to|
|00003c80| 20 74 72 75 65 0d 73 65 | 74 20 74 68 65 20 6c 6f | true.se|t the lo|
|00003c90| 63 6b 6d 65 73 73 61 67 | 65 73 20 74 6f 20 74 72 |ckmessag|es to tr|
|00003ca0| 75 65 0d 73 65 74 20 74 | 68 65 20 6c 6f 63 6b 72 |ue.set t|he lockr|
|00003cb0| 65 63 65 6e 74 20 74 6f | 20 74 72 75 65 0d 0d 67 |ecent to| true..g|
|00003cc0| 6f 20 66 69 72 73 74 20 | 63 61 72 64 0d 73 65 6e |o first |card.sen|
|00003cd0| 64 20 22 45 78 70 6f 72 | 74 42 6f 6f 6b 54 65 78 |d "Expor|tBookTex|
|00003ce0| 74 22 20 74 6f 20 74 68 | 69 73 20 62 67 0d 0d 67 |t" to th|is bg..g|
|00003cf0| 6f 20 63 64 20 31 20 6f | 66 20 62 67 20 22 74 65 |o cd 1 o|f bg "te|
|00003d00| 78 74 22 0d 73 65 6e 64 | 20 22 45 78 70 6f 72 74 |xt".send| "Export|
|00003d10| 42 6f 6f 6b 54 65 78 74 | 22 20 74 6f 20 74 68 69 |BookText|" to thi|
|00003d20| 73 20 62 67 0d 0d 63 6c | 6f 73 65 20 66 69 6c 65 |s bg..cl|ose file|
|00003d30| 20 67 4f 70 65 6e 46 69 | 6c 65 4e 61 6d 65 0d 70 | gOpenFi|leName.p|
|00003d40| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 67 4f |ut empty| into gO|
|00003d50| 70 65 6e 46 69 6c 65 4e | 61 6d 65 0d 70 6f 70 20 |penFileN|ame.pop |
|00003d60| 63 61 72 64 0d 65 6e 64 | 20 45 78 70 6f 72 74 41 |card.end| ExportA|
|00003d70| 6c 6c 42 6f 6f 6b 54 65 | 78 74 0d 0d 6f 6e 20 43 |llBookTe|xt..on C|
|00003d80| 6c 65 61 72 4e 6f 74 65 | 73 0d 70 75 73 68 20 63 |learNote|s.push c|
|00003d90| 61 72 64 0d 73 65 74 20 | 74 68 65 20 6c 6f 63 6b |ard.set |the lock|
|00003da0| 53 63 72 65 65 6e 20 74 | 6f 20 74 72 75 65 0d 73 |Screen t|o true.s|
|00003db0| 65 74 20 74 68 65 20 6c | 6f 63 6b 4d 65 73 73 61 |et the l|ockMessa|
|00003dc0| 67 65 73 20 74 6f 20 74 | 72 75 65 0d 73 65 74 20 |ges to t|rue.set |
|00003dd0| 74 68 65 20 6c 6f 63 6b | 52 65 63 65 6e 74 20 74 |the lock|Recent t|
|00003de0| 6f 20 74 72 75 65 0d 72 | 65 70 65 61 74 20 77 69 |o true.r|epeat wi|
|00003df0| 74 68 20 69 20 3d 20 32 | 20 74 6f 20 74 68 65 20 |th i = 2| to the |
|00003e00| 6e 75 6d 62 65 72 20 6f | 66 20 63 61 72 64 73 20 |number o|f cards |
|00003e10| 6f 66 20 62 67 20 22 74 | 65 78 74 22 0d 73 65 74 |of bg "t|ext".set|
|00003e20| 20 74 68 65 20 63 75 72 | 73 6f 72 20 74 6f 20 62 | the cur|sor to b|
|00003e30| 75 73 79 0d 67 6f 20 63 | 64 20 69 20 6f 66 20 62 |usy.go c|d i of b|
|00003e40| 67 20 22 74 65 78 74 22 | 0d 69 66 20 53 65 63 74 |g "text"|.if Sect|
|00003e50| 69 6f 6e 4e 61 6d 65 28 | 29 20 69 73 20 22 50 72 |ionName(|) is "Pr|
|00003e60| 6f 6a 65 63 74 20 47 75 | 74 65 6e 62 65 72 67 22 |oject Gu|tenberg"|
|00003e70| 20 6f 72 20 c2 0d 53 65 | 63 74 69 6f 6e 4e 61 6d | or ..Se|ctionNam|
|00003e80| 65 28 29 20 69 73 20 22 | 50 75 62 6c 69 63 61 74 |e() is "|Publicat|
|00003e90| 69 6f 6e 20 4e 6f 74 65 | 73 22 20 74 68 65 6e 20 |ion Note|s" then |
|00003ea0| 6e 65 78 74 20 72 65 70 | 65 61 74 0d 70 75 74 20 |next rep|eat.put |
|00003eb0| 65 6d 70 74 79 20 69 6e | 74 6f 20 62 67 20 66 6c |empty in|to bg fl|
|00003ec0| 64 20 22 6e 6f 74 65 73 | 22 0d 65 6e 64 20 72 65 |d "notes|".end re|
|00003ed0| 70 65 61 74 0d 70 6f 70 | 20 63 61 72 64 0d 65 6e |peat.pop| card.en|
|00003ee0| 64 20 43 6c 65 61 72 4e | 6f 74 65 73 0d 0d 6f 6e |d ClearN|otes..on|
|00003ef0| 20 4d 61 72 6b 54 65 78 | 74 0d 67 6c 6f 62 61 6c | MarkTex|t.global|
|00003f00| 20 67 43 75 72 72 65 6e | 74 6c 79 53 65 6c 65 63 | gCurren|tlySelec|
|00003f10| 74 65 64 43 68 75 6e 6b | 0d 69 66 20 74 68 65 20 |tedChunk|.if the |
|00003f20| 73 65 6c 65 63 74 69 6f | 6e 20 69 73 20 6e 6f 74 |selectio|n is not|
|00003f30| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 70 75 74 20 | empty t|hen.put |
|00003f40| 74 68 65 20 73 65 6c 65 | 63 74 65 64 43 68 75 6e |the sele|ctedChun|
|00003f50| 6b 20 69 6e 74 6f 20 67 | 43 75 72 72 65 6e 74 6c |k into g|Currentl|
|00003f60| 79 53 65 6c 65 63 74 65 | 64 43 68 75 6e 6b 0d 65 |ySelecte|dChunk.e|
|00003f70| 6c 73 65 20 69 66 20 67 | 43 75 72 72 65 6e 74 6c |lse if g|Currentl|
|00003f80| 79 53 65 6c 65 63 74 65 | 64 43 68 75 6e 6b 20 69 |ySelecte|dChunk i|
|00003f90| 73 20 65 6d 70 74 79 20 | 6f 72 20 c2 0d 77 6f 72 |s empty |or ..wor|
|00003fa0| 64 20 32 20 6f 66 20 67 | 43 75 72 72 65 6e 74 6c |d 2 of g|Currentl|
|00003fb0| 79 53 65 6c 65 63 74 65 | 64 43 68 75 6e 6b 20 3e |ySelecte|dChunk >|
|00003fc0| 20 77 6f 72 64 20 34 20 | 6f 66 20 67 43 75 72 72 | word 4 |of gCurr|
|00003fd0| 65 6e 74 6c 79 53 65 6c | 65 63 74 65 64 43 68 75 |entlySel|ectedChu|
|00003fe0| 6e 6b 20 74 68 65 6e 0d | 69 66 20 74 68 65 20 74 |nk then.|if the t|
|00003ff0| 61 72 67 65 74 20 63 6f | 6e 74 61 69 6e 73 20 22 |arget co|ntains "|
|00004000| 62 75 74 74 6f 6e 22 20 | 74 68 65 6e 0d 61 6e 73 |button" |then.ans|
|00004010| 77 65 72 20 22 53 65 6c | 65 63 74 20 74 65 78 74 |wer "Sel|ect text|
|00004020| 20 69 6e 20 74 68 65 20 | 6d 61 69 6e 20 74 65 78 | in the |main tex|
|00004030| 74 20 66 69 65 6c 64 20 | 61 6e 64 20 74 68 65 6e |t field |and then|
|00004040| 20 63 6c 69 63 6b 20 74 | 68 69 73 22 20 26 c2 0d | click t|his" &..|
|00004050| 22 20 62 75 74 74 6f 6e | 20 74 6f 20 75 6e 64 65 |" button| to unde|
|00004060| 72 6c 69 6e 65 20 69 74 | 2e 22 20 77 69 74 68 20 |rline it|." with |
|00004070| 22 4f 4b 22 0d 65 6c 73 | 65 0d 61 6e 73 77 65 72 |"OK".els|e.answer|
|00004080| 20 22 53 65 6c 65 63 74 | 20 74 65 78 74 20 69 6e | "Select| text in|
|00004090| 20 74 68 65 20 6d 61 69 | 6e 20 74 65 78 74 20 66 | the mai|n text f|
|000040a0| 69 65 6c 64 20 61 6e 64 | 20 73 65 6c 65 63 74 20 |ield and| select |
|000040b0| 74 68 69 73 22 20 26 c2 | 0d 22 20 6d 65 6e 75 20 |this" &.|." menu |
|000040c0| 69 74 65 6d 20 74 6f 20 | 75 6e 64 65 72 6c 69 6e |item to |underlin|
|000040d0| 65 20 69 74 2e 22 20 77 | 69 74 68 20 22 4f 4b 22 |e it." w|ith "OK"|
|000040e0| 0d 65 6e 64 20 69 66 0d | 65 78 69 74 20 4d 61 72 |.end if.|exit Mar|
|000040f0| 6b 54 65 78 74 0d 65 6e | 64 20 69 66 0d 0d 67 65 |kText.en|d if..ge|
|00004100| 74 20 74 68 65 20 74 65 | 78 74 53 74 79 6c 65 20 |t the te|xtStyle |
|00004110| 6f 66 20 67 43 75 72 72 | 65 6e 74 6c 79 53 65 6c |of gCurr|entlySel|
|00004120| 65 63 74 65 64 43 68 75 | 6e 6b 0d 69 66 20 69 74 |ectedChu|nk.if it|
|00004130| 20 63 6f 6e 74 61 69 6e | 73 20 22 75 6e 64 65 72 | contain|s "under|
|00004140| 6c 69 6e 65 22 20 74 68 | 65 6e 0d 73 65 74 20 74 |line" th|en.set t|
|00004150| 68 65 20 74 65 78 74 53 | 74 79 6c 65 20 6f 66 20 |he textS|tyle of |
|00004160| 67 43 75 72 72 65 6e 74 | 6c 79 53 65 6c 65 63 74 |gCurrent|lySelect|
|00004170| 65 64 43 68 75 6e 6b 20 | 74 6f 20 70 6c 61 69 6e |edChunk |to plain|
|00004180| 0d 65 6c 73 65 20 69 66 | 20 69 74 20 69 73 20 22 |.else if| it is "|
|00004190| 70 6c 61 69 6e 22 20 74 | 68 65 6e 0d 73 65 74 20 |plain" t|hen.set |
|000041a0| 74 68 65 20 74 65 78 74 | 53 74 79 6c 65 20 6f 66 |the text|Style of|
|000041b0| 20 67 43 75 72 72 65 6e | 74 6c 79 53 65 6c 65 63 | gCurren|tlySelec|
|000041c0| 74 65 64 43 68 75 6e 6b | 20 74 6f 20 75 6e 64 65 |tedChunk| to unde|
|000041d0| 72 6c 69 6e 65 0d 65 6c | 73 65 20 69 66 20 69 74 |rline.el|se if it|
|000041e0| 20 69 73 20 22 6d 69 78 | 65 64 22 20 74 68 65 6e | is "mix|ed" then|
|000041f0| 0d 73 65 74 20 74 68 65 | 20 74 65 78 74 53 74 79 |.set the| textSty|
|00004200| 6c 65 20 6f 66 20 67 43 | 75 72 72 65 6e 74 6c 79 |le of gC|urrently|
|00004210| 53 65 6c 65 63 74 65 64 | 43 68 75 6e 6b 20 74 6f |Selected|Chunk to|
|00004220| 20 75 6e 64 65 72 6c 69 | 6e 65 0d 65 6e 64 20 69 | underli|ne.end i|
|00004230| 66 0d 73 65 6c 65 63 74 | 20 67 43 75 72 72 65 6e |f.select| gCurren|
|00004240| 74 6c 79 53 65 6c 65 63 | 74 65 64 43 68 75 6e 6b |tlySelec|tedChunk|
|00004250| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 62 |.if ther|e is a b|
|00004260| 67 20 62 74 6e 20 22 6d | 61 72 6b 20 74 65 78 74 |g btn "m|ark text|
|00004270| 22 20 74 68 65 6e 0d 69 | 66 20 74 68 65 20 6d 6f |" then.i|f the mo|
|00004280| 75 73 65 4c 6f 63 20 69 | 73 20 6e 6f 74 20 77 69 |useLoc i|s not wi|
|00004290| 74 68 69 6e 20 74 68 65 | 20 72 65 63 74 20 6f 66 |thin the| rect of|
|000042a0| 20 62 67 20 62 74 6e 20 | 22 6d 61 72 6b 20 74 65 | bg btn |"mark te|
|000042b0| 78 74 22 0d 74 68 65 6e | 20 70 75 74 20 65 6d 70 |xt".then| put emp|
|000042c0| 74 79 20 69 6e 74 6f 20 | 67 43 75 72 72 65 6e 74 |ty into |gCurrent|
|000042d0| 6c 79 53 65 6c 65 63 74 | 65 64 43 68 75 6e 6b 0d |lySelect|edChunk.|
|000042e0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 4d 61 72 6b 54 |end if.e|nd MarkT|
|000042f0| 65 78 74 0d 0d 6f 6e 20 | 53 74 61 72 74 53 65 61 |ext..on |StartSea|
|00004300| 72 63 68 20 66 6f 72 63 | 65 41 67 61 69 6e 0d 67 |rch forc|eAgain.g|
|00004310| 6c 6f 62 61 6c 20 67 4c | 61 73 74 53 65 61 72 63 |lobal gL|astSearc|
|00004320| 68 57 6f 72 64 2c 67 46 | 6f 75 6e 64 43 68 75 6e |hWord,gF|oundChun|
|00004330| 6b 0d 69 66 20 67 4c 61 | 73 74 53 65 61 72 63 68 |k.if gLa|stSearch|
|00004340| 57 6f 72 64 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |Word is |not empt|
|00004350| 79 20 61 6e 64 20 c2 0d | 28 66 6f 72 63 65 41 67 |y and ..|(forceAg|
|00004360| 61 69 6e 20 69 73 20 74 | 72 75 65 20 6f 72 20 74 |ain is t|rue or t|
|00004370| 68 65 20 6f 70 74 69 6f | 6e 4b 65 79 20 69 73 20 |he optio|nKey is |
|00004380| 64 6f 77 6e 29 20 74 68 | 65 6e 0d 46 69 6e 64 57 |down) th|en.FindW|
|00004390| 6f 72 64 0d 65 6c 73 65 | 0d 61 73 6b 20 22 57 6f |ord.else|.ask "Wo|
|000043a0| 72 64 20 6f 72 20 70 68 | 72 61 73 65 20 74 6f 20 |rd or ph|rase to |
|000043b0| 73 65 61 72 63 68 20 66 | 6f 72 20 3f 22 26 20 72 |search f|or ?"& r|
|000043c0| 65 74 75 72 6e 20 26 20 | 72 65 74 75 72 6e 20 26 |eturn & |return &|
|000043d0| 20 c2 0d 22 20 20 28 4f | 70 74 69 6f 6e 2d 63 6c | .." (O|ption-cl|
|000043e0| 69 63 6b 20 74 68 65 20 | 73 65 61 72 63 68 20 62 |ick the |search b|
|000043f0| 75 74 74 6f 6e 20 74 6f | 20 70 65 72 66 6f 72 6d |utton to| perform|
|00004400| 22 26 72 65 74 75 72 6e | 26 22 20 20 20 74 68 69 |"&return|&" thi|
|00004410| 73 20 73 65 61 72 63 68 | 20 61 67 61 69 6e 2e 29 |s search| again.)|
|00004420| 22 20 77 69 74 68 20 67 | 4c 61 73 74 53 65 61 72 |" with g|LastSear|
|00004430| 63 68 57 6f 72 64 0d 69 | 66 20 69 74 20 69 73 20 |chWord.i|f it is |
|00004440| 65 6d 70 74 79 20 74 68 | 65 6e 20 65 78 69 74 20 |empty th|en exit |
|00004450| 53 74 61 72 74 53 65 61 | 72 63 68 0d 69 66 20 69 |StartSea|rch.if i|
|00004460| 74 20 69 73 20 6e 6f 74 | 20 67 4c 61 73 74 53 65 |t is not| gLastSe|
|00004470| 61 72 63 68 57 6f 72 64 | 20 74 68 65 6e 20 70 75 |archWord| then pu|
|00004480| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 67 46 6f |t empty |into gFo|
|00004490| 75 6e 64 43 68 75 6e 6b | 0d 46 69 6e 64 57 6f 72 |undChunk|.FindWor|
|000044a0| 64 20 69 74 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |d it.end| if.end |
|000044b0| 53 74 61 72 74 53 65 61 | 72 63 68 0d 0d 6f 6e 20 |StartSea|rch..on |
|000044c0| 46 69 6e 64 57 6f 72 64 | 20 73 65 61 72 63 68 54 |FindWord| searchT|
|000044d0| 65 78 74 0d 67 6c 6f 62 | 61 6c 20 67 4c 61 73 74 |ext.glob|al gLast|
|000044e0| 53 65 61 72 63 68 57 6f | 72 64 2c 67 46 6f 75 6e |SearchWo|rd,gFoun|
|000044f0| 64 43 68 75 6e 6b 0d 69 | 66 20 73 65 61 72 63 68 |dChunk.i|f search|
|00004500| 54 65 78 74 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |Text is |not empt|
|00004510| 79 20 74 68 65 6e 20 70 | 75 74 20 73 65 61 72 63 |y then p|ut searc|
|00004520| 68 54 65 78 74 20 69 6e | 74 6f 20 67 4c 61 73 74 |hText in|to gLast|
|00004530| 53 65 61 72 63 68 57 6f | 72 64 0d 69 66 20 74 68 |SearchWo|rd.if th|
|00004540| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 68 69 73 |e number| of this|
|00004550| 20 63 61 72 64 20 69 73 | 20 6e 6f 74 20 69 74 65 | card is| not ite|
|00004560| 6d 20 34 20 6f 66 20 67 | 46 6f 75 6e 64 43 68 75 |m 4 of g|FoundChu|
|00004570| 6e 6b 0d 74 68 65 6e 20 | 70 75 74 20 65 6d 70 74 |nk.then |put empt|
|00004580| 79 20 69 6e 74 6f 20 67 | 46 6f 75 6e 64 43 68 75 |y into g|FoundChu|
|00004590| 6e 6b 0d 0d 70 75 73 68 | 20 63 61 72 64 0d 69 66 |nk..push| card.if|
|000045a0| 20 46 69 6e 64 45 6e 67 | 69 6e 65 28 29 20 74 68 | FindEng|ine() th|
|000045b0| 65 6e 0d 70 6f 70 20 63 | 61 72 64 20 69 6e 74 6f |en.pop c|ard into|
|000045c0| 20 69 74 0d 53 65 6c 65 | 63 74 46 6f 75 6e 64 54 | it.Sele|ctFoundT|
|000045d0| 65 78 74 0d 65 6c 73 65 | 0d 70 6f 70 20 63 61 72 |ext.else|.pop car|
|000045e0| 64 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |d.put em|pty into|
|000045f0| 20 67 46 6f 75 6e 64 43 | 68 75 6e 6b 0d 65 6e 64 | gFoundC|hunk.end|
|00004600| 20 69 66 0d 65 6e 64 20 | 46 69 6e 64 57 6f 72 64 | if.end |FindWord|
|00004610| 0d 0d 6f 6e 20 53 65 6c | 65 63 74 46 6f 75 6e 64 |..on Sel|ectFound|
|00004620| 54 65 78 74 0d 67 6c 6f | 62 61 6c 20 67 46 6f 75 |Text.glo|bal gFou|
|00004630| 6e 64 43 68 75 6e 6b 2c | 67 46 69 72 73 74 4c 69 |ndChunk,|gFirstLi|
|00004640| 6e 65 2c 67 4c 61 73 74 | 53 65 61 72 63 68 57 6f |ne,gLast|SearchWo|
|00004650| 72 64 0d 69 66 20 67 46 | 6f 75 6e 64 43 68 75 6e |rd.if gF|oundChun|
|00004660| 6b 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 20 |k is emp|ty then |
|00004670| 65 78 69 74 20 53 65 6c | 65 63 74 46 6f 75 6e 64 |exit Sel|ectFound|
|00004680| 54 65 78 74 0d 70 75 74 | 20 69 74 65 6d 20 31 20 |Text.put| item 1 |
|00004690| 6f 66 20 67 46 6f 75 6e | 64 43 68 75 6e 6b 20 69 |of gFoun|dChunk i|
|000046a0| 6e 74 6f 20 73 74 61 72 | 74 43 68 61 72 0d 70 75 |nto star|tChar.pu|
|000046b0| 74 20 73 74 61 72 74 43 | 68 61 72 20 2b 20 74 68 |t startC|har + th|
|000046c0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 68 61 72 |e number| of char|
|000046d0| 73 20 6f 66 20 67 4c 61 | 73 74 53 65 61 72 63 68 |s of gLa|stSearch|
|000046e0| 57 6f 72 64 20 2d 20 31 | 20 69 6e 74 6f 20 65 6e |Word - 1| into en|
|000046f0| 64 43 68 61 72 0d 70 75 | 74 20 69 74 65 6d 20 33 |dChar.pu|t item 3|
|00004700| 20 6f 66 20 67 46 6f 75 | 6e 64 43 68 75 6e 6b 20 | of gFou|ndChunk |
|00004710| 69 6e 74 6f 20 73 65 6c | 65 63 74 65 64 46 69 65 |into sel|ectedFie|
|00004720| 6c 64 0d 73 65 74 20 74 | 68 65 20 6c 6f 63 6b 73 |ld.set t|he locks|
|00004730| 63 72 65 65 6e 20 74 6f | 20 66 61 6c 73 65 0d 73 |creen to| false.s|
|00004740| 65 74 20 74 68 65 20 6c | 6f 63 6b 73 63 72 65 65 |et the l|ockscree|
|00004750| 6e 20 74 6f 20 66 61 6c | 73 65 0d 73 65 6c 65 63 |n to fal|se.selec|
|00004760| 74 20 63 68 61 72 20 73 | 74 61 72 74 43 68 61 72 |t char s|tartChar|
|00004770| 20 74 6f 20 65 6e 64 43 | 68 61 72 20 6f 66 20 62 | to endC|har of b|
|00004780| 67 20 66 6c 64 20 73 65 | 6c 65 63 74 65 64 46 69 |g fld se|lectedFi|
|00004790| 65 6c 64 0d 65 6e 64 20 | 53 65 6c 65 63 74 46 6f |eld.end |SelectFo|
|000047a0| 75 6e 64 54 65 78 74 0d | 0d 46 55 4e 43 54 49 4f |undText.|.FUNCTIO|
|000047b0| 4e 20 46 69 6e 64 45 6e | 67 69 6e 65 0d 67 6c 6f |N FindEn|gine.glo|
|000047c0| 62 61 6c 20 67 4c 61 73 | 74 53 65 61 72 63 68 57 |bal gLas|tSearchW|
|000047d0| 6f 72 64 2c 67 46 6f 75 | 6e 64 43 68 75 6e 6b 2c |ord,gFou|ndChunk,|
|000047e0| 67 46 6f 72 63 65 42 65 | 67 69 6e 6e 69 6e 67 0d |gForceBe|ginning.|
|000047f0| 70 75 74 20 66 61 6c 73 | 65 20 69 6e 74 6f 20 66 |put fals|e into f|
|00004800| 6f 75 6e 64 0d 0d 73 65 | 74 20 74 68 65 20 6c 6f |ound..se|t the lo|
|00004810| 63 6b 73 63 72 65 65 6e | 20 74 6f 20 74 72 75 65 |ckscreen| to true|
|00004820| 0d 73 65 74 20 74 68 65 | 20 6c 6f 63 6b 6d 65 73 |.set the| lockmes|
|00004830| 73 61 67 65 73 20 74 6f | 20 74 72 75 65 0d 73 65 |sages to| true.se|
|00004840| 74 20 74 68 65 20 6c 6f | 63 6b 72 65 63 65 6e 74 |t the lo|ckrecent|
|00004850| 20 74 6f 20 74 72 75 65 | 0d 0d 69 66 20 67 46 6f | to true|..if gFo|
|00004860| 72 63 65 42 65 67 69 6e | 6e 69 6e 67 20 69 73 20 |rceBegin|ning is |
|00004870| 74 72 75 65 20 74 68 65 | 6e 0d 70 75 74 20 31 20 |true the|n.put 1 |
|00004880| 69 6e 74 6f 20 73 74 61 | 72 74 43 61 72 64 0d 65 |into sta|rtCard.e|
|00004890| 6c 73 65 20 69 66 20 67 | 46 6f 75 6e 64 43 68 75 |lse if g|FoundChu|
|000048a0| 6e 6b 20 69 73 20 65 6d | 70 74 79 20 74 68 65 6e |nk is em|pty then|
|000048b0| 0d 2d 2d 20 69 74 20 68 | 61 73 20 6e 6f 74 20 62 |.-- it h|as not b|
|000048c0| 65 65 6e 20 66 6f 75 6e | 64 20 62 65 66 6f 72 65 |een foun|d before|
|000048d0| 2e 20 20 53 74 61 72 74 | 20 6c 6f 6f 6b 69 6e 67 |. Start| looking|
|000048e0| 20 66 72 6f 6d 20 74 68 | 69 73 20 63 61 72 64 0d | from th|is card.|
|000048f0| 69 66 20 74 68 65 20 73 | 68 6f 72 74 20 6e 61 6d |if the s|hort nam|
|00004900| 65 20 6f 66 20 74 68 69 | 73 20 62 67 20 69 73 20 |e of thi|s bg is |
|00004910| 22 74 65 78 74 22 20 74 | 68 65 6e 0d 70 75 74 20 |"text" t|hen.put |
|00004920| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 68 |the numb|er of th|
|00004930| 69 73 20 63 61 72 64 20 | 69 6e 74 6f 20 73 74 61 |is card |into sta|
|00004940| 72 74 43 61 72 64 0d 65 | 6c 73 65 20 70 75 74 20 |rtCard.e|lse put |
|00004950| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 61 |the numb|er of ca|
|00004960| 72 64 20 31 20 6f 66 20 | 62 67 20 22 74 65 78 74 |rd 1 of |bg "text|
|00004970| 22 20 69 6e 74 6f 20 73 | 74 61 72 74 43 61 72 64 |" into s|tartCard|
|00004980| 0d 69 66 20 73 74 61 72 | 74 43 61 72 64 20 69 73 |.if star|tCard is|
|00004990| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|000049a0| 61 72 64 20 31 20 6f 66 | 20 62 67 20 22 74 65 78 |ard 1 of| bg "tex|
|000049b0| 74 22 20 74 68 65 6e 0d | 70 75 74 20 74 72 75 65 |t" then.|put true|
|000049c0| 20 69 6e 74 6f 20 67 46 | 6f 72 63 65 42 65 67 69 | into gF|orceBegi|
|000049d0| 6e 6e 69 6e 67 0d 65 6e | 64 20 69 66 0d 65 6c 73 |nning.en|d if.els|
|000049e0| 65 0d 2d 2d 20 69 74 20 | 68 61 73 20 62 65 65 6e |e.-- it |has been|
|000049f0| 20 66 6f 75 6e 64 20 62 | 65 66 6f 72 65 2e 0d 73 | found b|efore..s|
|00004a00| 65 74 20 74 68 65 20 63 | 75 72 73 6f 72 20 74 6f |et the c|ursor to|
|00004a10| 20 77 61 74 63 68 0d 70 | 75 74 20 69 74 65 6d 20 | watch.p|ut item |
|00004a20| 31 20 6f 66 20 67 46 6f | 75 6e 64 43 68 75 6e 6b |1 of gFo|undChunk|
|00004a30| 20 69 6e 74 6f 20 73 74 | 61 72 74 43 68 61 72 0d | into st|artChar.|
|00004a40| 70 75 74 20 69 74 65 6d | 20 32 20 6f 66 20 67 46 |put item| 2 of gF|
|00004a50| 6f 75 6e 64 43 68 75 6e | 6b 20 69 6e 74 6f 20 73 |oundChun|k into s|
|00004a60| 74 61 72 74 4c 69 6e 65 | 0d 70 75 74 20 69 74 65 |tartLine|.put ite|
|00004a70| 6d 20 33 20 6f 66 20 67 | 46 6f 75 6e 64 43 68 75 |m 3 of g|FoundChu|
|00004a80| 6e 6b 20 69 6e 74 6f 20 | 73 74 61 72 74 46 69 65 |nk into |startFie|
|00004a90| 6c 64 0d 70 75 74 20 69 | 74 65 6d 20 34 20 6f 66 |ld.put i|tem 4 of|
|00004aa0| 20 67 46 6f 75 6e 64 43 | 68 75 6e 6b 20 69 6e 74 | gFoundC|hunk int|
|00004ab0| 6f 20 73 74 61 72 74 43 | 61 72 64 0d 67 6f 20 63 |o startC|ard.go c|
|00004ac0| 64 20 73 74 61 72 74 43 | 61 72 64 0d 0d 2d 2d 20 |d startC|ard..-- |
|00004ad0| 20 20 43 68 65 63 6b 20 | 66 69 72 73 74 20 69 6e | Check |first in|
|00004ae0| 20 66 69 65 6c 64 20 77 | 68 65 72 65 20 69 74 20 | field w|here it |
|00004af0| 77 61 73 20 66 6f 75 6e | 64 2e 0d 70 75 74 20 66 |was foun|d..put f|
|00004b00| 69 65 6c 64 20 73 74 61 | 72 74 46 69 65 6c 64 20 |ield sta|rtField |
|00004b10| 69 6e 74 6f 20 74 65 6d | 70 46 69 65 6c 64 0d 64 |into tem|pField.d|
|00004b20| 65 6c 65 74 65 20 63 68 | 61 72 20 31 20 74 6f 20 |elete ch|ar 1 to |
|00004b30| 73 74 61 72 74 43 68 61 | 72 20 6f 66 20 74 65 6d |startCha|r of tem|
|00004b40| 70 46 69 65 6c 64 0d 69 | 66 20 74 65 6d 70 46 69 |pField.i|f tempFi|
|00004b50| 65 6c 64 20 63 6f 6e 74 | 61 69 6e 73 20 67 4c 61 |eld cont|ains gLa|
|00004b60| 73 74 53 65 61 72 63 68 | 57 6f 72 64 20 74 68 65 |stSearch|Word the|
|00004b70| 6e 0d 70 75 74 20 6f 66 | 66 73 65 74 28 67 4c 61 |n.put of|fset(gLa|
|00004b80| 73 74 53 65 61 72 63 68 | 57 6f 72 64 2c 74 65 6d |stSearch|Word,tem|
|00004b90| 70 46 69 65 6c 64 29 20 | 69 6e 74 6f 20 6d 61 74 |pField) |into mat|
|00004ba0| 63 68 43 68 61 72 0d 67 | 65 74 20 74 68 65 20 6e |chChar.g|et the n|
|00004bb0| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 69 |umber of| lines i|
|00004bc0| 6e 20 63 68 61 72 20 31 | 20 74 6f 20 6d 61 74 63 |n char 1| to matc|
|00004bd0| 68 43 68 61 72 20 6f 66 | 20 74 65 6d 70 46 69 65 |hChar of| tempFie|
|00004be0| 6c 64 0d 61 64 64 20 69 | 74 20 74 6f 20 73 74 61 |ld.add i|t to sta|
|00004bf0| 72 74 4c 69 6e 65 0d 61 | 64 64 20 6d 61 74 63 68 |rtLine.a|dd match|
|00004c00| 43 68 61 72 20 74 6f 20 | 73 74 61 72 74 43 68 61 |Char to |startCha|
|00004c10| 72 0d 70 75 74 20 74 72 | 75 65 20 69 6e 74 6f 20 |r.put tr|ue into |
|00004c20| 66 6f 75 6e 64 0d 65 6e | 64 20 69 66 0d 0d 69 66 |found.en|d if..if|
|00004c30| 20 6e 6f 74 20 66 6f 75 | 6e 64 20 74 68 65 6e 0d | not fou|nd then.|
|00004c40| 2d 2d 20 53 69 6e 63 65 | 20 69 74 27 73 20 6e 6f |-- Since| it's no|
|00004c50| 74 20 74 68 65 72 65 2c | 20 63 68 65 63 6b 20 69 |t there,| check i|
|00004c60| 74 20 74 68 65 20 72 65 | 73 74 20 6f 66 20 74 68 |t the re|st of th|
|00004c70| 65 20 66 69 65 6c 64 73 | 20 6f 66 20 74 68 61 74 |e fields| of that|
|00004c80| 20 63 61 72 64 0d 72 65 | 70 65 61 74 20 77 69 74 | card.re|peat wit|
|00004c90| 68 20 69 20 3d 20 28 73 | 74 61 72 74 46 69 65 6c |h i = (s|tartFiel|
|00004ca0| 64 20 2b 20 31 29 20 74 | 6f 20 74 68 65 20 6e 75 |d + 1) t|o the nu|
|00004cb0| 6d 62 65 72 20 6f 66 20 | 62 67 20 66 6c 64 73 0d |mber of |bg flds.|
|00004cc0| 73 65 74 20 74 68 65 20 | 63 75 72 73 6f 72 20 74 |set the |cursor t|
|00004cd0| 6f 20 62 75 73 79 0d 69 | 66 20 74 68 65 20 64 6f |o busy.i|f the do|
|00004ce0| 6e 74 53 65 61 72 63 68 | 20 6f 66 20 62 67 20 66 |ntSearch| of bg f|
|00004cf0| 6c 64 20 69 20 74 68 65 | 6e 20 6e 65 78 74 20 72 |ld i the|n next r|
|00004d00| 65 70 65 61 74 0d 69 66 | 20 66 69 65 6c 64 20 69 |epeat.if| field i|
|00004d10| 20 63 6f 6e 74 61 69 6e | 73 20 67 4c 61 73 74 53 | contain|s gLastS|
|00004d20| 65 61 72 63 68 57 6f 72 | 64 20 74 68 65 6e 0d 70 |earchWor|d then.p|
|00004d30| 75 74 20 6f 66 66 73 65 | 74 28 67 4c 61 73 74 53 |ut offse|t(gLastS|
|00004d40| 65 61 72 63 68 57 6f 72 | 64 2c 66 69 65 6c 64 20 |earchWor|d,field |
|00004d50| 69 29 20 69 6e 74 6f 20 | 6c 61 73 74 43 68 61 72 |i) into |lastChar|
|00004d60| 0d 67 65 74 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |.get the| number |
|00004d70| 6f 66 20 6c 69 6e 65 73 | 20 69 6e 20 63 68 61 72 |of lines| in char|
|00004d80| 20 31 20 74 6f 20 6c 61 | 73 74 43 68 61 72 20 6f | 1 to la|stChar o|
|00004d90| 66 20 66 69 65 6c 64 20 | 69 0d 70 75 74 20 69 74 |f field |i.put it|
|00004da0| 20 69 6e 74 6f 20 73 74 | 61 72 74 4c 69 6e 65 0d | into st|artLine.|
|00004db0| 70 75 74 20 69 20 69 6e | 74 6f 20 73 74 61 72 74 |put i in|to start|
|00004dc0| 46 69 65 6c 64 0d 70 75 | 74 20 74 72 75 65 20 69 |Field.pu|t true i|
|00004dd0| 6e 74 6f 20 66 6f 75 6e | 64 0d 65 78 69 74 20 72 |nto foun|d.exit r|
|00004de0| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 65 6e 64 |epeat.en|d if.end|
|00004df0| 20 72 65 70 65 61 74 0d | 65 6e 64 20 69 66 0d 0d | repeat.|end if..|
|00004e00| 69 66 20 6e 6f 74 20 66 | 6f 75 6e 64 20 74 68 65 |if not f|ound the|
|00004e10| 6e 20 61 64 64 20 31 20 | 74 6f 20 73 74 61 72 74 |n add 1 |to start|
|00004e20| 43 61 72 64 0d 65 6e 64 | 20 69 66 0d 0d 69 66 20 |Card.end| if..if |
|00004e30| 6e 6f 74 20 66 6f 75 6e | 64 20 74 68 65 6e 0d 2d |not foun|d then.-|
|00004e40| 2d 20 69 66 20 69 74 20 | 73 74 69 6c 6c 20 68 61 |- if it |still ha|
|00004e50| 73 20 6e 6f 74 20 62 65 | 65 6e 20 66 6f 75 6e 64 |s not be|en found|
|00004e60| 2c 20 73 74 61 72 74 20 | 6c 6f 6f 6b 69 6e 67 20 |, start |looking |
|00004e70| 61 74 20 63 61 72 64 20 | 73 74 61 72 74 43 61 72 |at card |startCar|
|00004e80| 64 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 69 20 |d.repeat| with i |
|00004e90| 3d 20 73 74 61 72 74 43 | 61 72 64 20 74 6f 20 74 |= startC|ard to t|
|00004ea0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 61 72 |he numbe|r of car|
|00004eb0| 64 73 0d 73 65 74 20 74 | 68 65 20 63 75 72 73 6f |ds.set t|he curso|
|00004ec0| 72 20 74 6f 20 62 75 73 | 79 0d 67 6f 20 63 64 20 |r to bus|y.go cd |
|00004ed0| 69 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 6a 20 |i.repeat| with j |
|00004ee0| 3d 20 31 20 74 6f 20 74 | 68 65 20 6e 75 6d 62 65 |= 1 to t|he numbe|
|00004ef0| 72 20 6f 66 20 62 67 20 | 66 6c 64 73 0d 69 66 20 |r of bg |flds.if |
|00004f00| 74 68 65 20 64 6f 6e 74 | 53 65 61 72 63 68 20 6f |the dont|Search o|
|00004f10| 66 20 62 67 20 66 6c 64 | 20 6a 20 74 68 65 6e 20 |f bg fld| j then |
|00004f20| 6e 65 78 74 20 72 65 70 | 65 61 74 0d 69 66 20 62 |next rep|eat.if b|
|00004f30| 67 20 66 6c 64 20 6a 20 | 63 6f 6e 74 61 69 6e 73 |g fld j |contains|
|00004f40| 20 67 4c 61 73 74 53 65 | 61 72 63 68 57 6f 72 64 | gLastSe|archWord|
|00004f50| 20 74 68 65 6e 0d 70 75 | 74 20 74 72 75 65 20 69 | then.pu|t true i|
|00004f60| 6e 74 6f 20 66 6f 75 6e | 64 0d 70 75 74 20 69 20 |nto foun|d.put i |
|00004f70| 69 6e 74 6f 20 73 74 61 | 72 74 43 61 72 64 0d 70 |into sta|rtCard.p|
|00004f80| 75 74 20 6a 20 69 6e 74 | 6f 20 73 74 61 72 74 46 |ut j int|o startF|
|00004f90| 69 65 6c 64 0d 65 78 69 | 74 20 72 65 70 65 61 74 |ield.exi|t repeat|
|00004fa0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|00004fb0| 61 74 0d 69 66 20 66 6f | 75 6e 64 20 74 68 65 6e |at.if fo|und then|
|00004fc0| 20 65 78 69 74 20 72 65 | 70 65 61 74 0d 65 6e 64 | exit re|peat.end|
|00004fd0| 20 72 65 70 65 61 74 0d | 0d 69 66 20 66 6f 75 6e | repeat.|.if foun|
|00004fe0| 64 20 74 68 65 6e 0d 67 | 6f 20 63 64 20 73 74 61 |d then.g|o cd sta|
|00004ff0| 72 74 43 61 72 64 0d 70 | 75 74 20 6f 66 66 73 65 |rtCard.p|ut offse|
|00005000| 74 28 67 4c 61 73 74 53 | 65 61 72 63 68 57 6f 72 |t(gLastS|earchWor|
|00005010| 64 2c 62 67 20 66 6c 64 | 20 73 74 61 72 74 46 69 |d,bg fld| startFi|
|00005020| 65 6c 64 29 20 69 6e 74 | 6f 20 73 74 61 72 74 43 |eld) int|o startC|
|00005030| 68 61 72 0d 70 75 74 20 | 74 68 65 20 6e 75 6d 62 |har.put |the numb|
|00005040| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 63 |er of li|nes in c|
|00005050| 68 61 72 20 31 20 74 6f | 20 73 74 61 72 74 43 68 |har 1 to| startCh|
|00005060| 61 72 20 6f 66 20 62 67 | 20 66 6c 64 20 73 74 61 |ar of bg| fld sta|
|00005070| 72 74 46 69 65 6c 64 20 | c2 0d 69 6e 74 6f 20 73 |rtField |..into s|
|00005080| 74 61 72 74 4c 69 6e 65 | 0d 70 75 74 20 69 20 69 |tartLine|.put i i|
|00005090| 6e 74 6f 20 73 74 61 72 | 74 43 61 72 64 0d 65 6e |nto star|tCard.en|
|000050a0| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 0d 69 66 20 |d if.end| if..if |
|000050b0| 66 6f 75 6e 64 20 74 68 | 65 6e 20 2d 2d 20 73 74 |found th|en -- st|
|000050c0| 6f 72 65 20 77 68 65 72 | 65 20 69 74 20 77 61 73 |ore wher|e it was|
|000050d0| 20 66 6f 75 6e 64 20 69 | 6e 20 67 46 6f 75 6e 64 | found i|n gFound|
|000050e0| 43 68 75 6e 6b 0d 70 75 | 74 20 73 74 61 72 74 43 |Chunk.pu|t startC|
|000050f0| 68 61 72 26 22 2c 22 26 | 73 74 61 72 74 4c 69 6e |har&","&|startLin|
|00005100| 65 26 22 2c 22 26 73 74 | 61 72 74 46 69 65 6c 64 |e&","&st|artField|
|00005110| 26 22 2c 22 26 73 74 61 | 72 74 43 61 72 64 20 69 |&","&sta|rtCard i|
|00005120| 6e 74 6f 20 67 46 6f 75 | 6e 64 43 68 75 6e 6b 0d |nto gFou|ndChunk.|
|00005130| 65 6c 73 65 0d 69 66 20 | 67 46 6f 72 63 65 42 65 |else.if |gForceBe|
|00005140| 67 69 6e 6e 69 6e 67 20 | 69 73 20 74 72 75 65 20 |ginning |is true |
|00005150| 74 68 65 6e 0d 70 75 74 | 20 66 61 6c 73 65 20 69 |then.put| false i|
|00005160| 6e 74 6f 20 66 6f 75 6e | 64 0d 61 6e 73 77 65 72 |nto foun|d.answer|
|00005170| 20 22 d4 22 26 67 4c 61 | 73 74 53 65 61 72 63 68 | "."&gLa|stSearch|
|00005180| 57 6f 72 64 26 22 d5 20 | 6e 6f 74 20 66 6f 75 6e |Word&". |not foun|
|00005190| 64 2e 22 0d 65 6c 73 65 | 0d 61 6e 73 77 65 72 20 |d.".else|.answer |
|000051a0| 22 45 6e 64 20 6f 66 20 | 62 6f 6f 6b 20 72 65 61 |"End of |book rea|
|000051b0| 63 68 65 64 2e 20 20 53 | 65 61 72 63 68 20 66 6f |ched. S|earch fo|
|000051c0| 72 20 d4 22 26 67 4c 61 | 73 74 53 65 61 72 63 68 |r ."&gLa|stSearch|
|000051d0| 57 6f 72 64 26 22 d5 20 | 66 72 6f 6d 20 74 68 65 |Word&". |from the|
|000051e0| 20 62 65 67 69 6e 6e 69 | 6e 67 3f 22 c2 0d 77 69 | beginni|ng?"..wi|
|000051f0| 74 68 20 22 4e 6f 22 20 | 6f 72 20 22 59 65 73 22 |th "No" |or "Yes"|
|00005200| 0d 69 66 20 69 74 20 69 | 73 20 22 59 65 73 22 20 |.if it i|s "Yes" |
|00005210| 74 68 65 6e 0d 70 75 74 | 20 74 72 75 65 20 69 6e |then.put| true in|
|00005220| 74 6f 20 67 46 6f 72 63 | 65 42 65 67 69 6e 6e 69 |to gForc|eBeginni|
|00005230| 6e 67 0d 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |ng.put e|mpty int|
|00005240| 6f 20 67 46 6f 75 6e 64 | 43 68 75 6e 6b 0d 70 75 |o gFound|Chunk.pu|
|00005250| 74 20 46 69 6e 64 45 6e | 67 69 6e 65 28 29 20 69 |t FindEn|gine() i|
|00005260| 6e 74 6f 20 66 6f 75 6e | 64 0d 65 6e 64 20 69 66 |nto foun|d.end if|
|00005270| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 0d |.end if.|end if..|
|00005280| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 67 |put empt|y into g|
|00005290| 46 6f 72 63 65 42 65 67 | 69 6e 6e 69 6e 67 0d 72 |ForceBeg|inning.r|
|000052a0| 65 74 75 72 6e 20 66 6f | 75 6e 64 0d 65 6e 64 20 |eturn fo|und.end |
|000052b0| 46 69 6e 64 45 6e 67 69 | 6e 65 0d 0d 2d 2d 20 46 |FindEngi|ne..-- F|
|000052c0| 55 4e 43 54 49 4f 4e 20 | 46 69 6e 64 45 6e 67 69 |UNCTION |FindEngi|
|000052d0| 6e 65 0d 2d 2d 20 67 6c | 6f 62 61 6c 20 67 4c 61 |ne.-- gl|obal gLa|
|000052e0| 73 74 53 65 61 72 63 68 | 57 6f 72 64 0d 2d 2d 20 |stSearch|Word.-- |
|000052f0| 66 69 6e 64 20 73 74 72 | 69 6e 67 20 67 4c 61 73 |find str|ing gLas|
|00005300| 74 53 65 61 72 63 68 57 | 6f 72 64 20 69 6e 20 62 |tSearchW|ord in b|
|00005310| 67 20 66 6c 64 20 22 66 | 6c 6f 77 20 31 22 0d 2d |g fld "f|low 1".-|
|00005320| 2d 20 70 75 74 20 74 68 | 65 20 72 65 73 75 6c 74 |- put th|e result|
|00005330| 0d 2d 2d 20 72 65 74 75 | 72 6e 20 74 72 75 65 0d |.-- retu|rn true.|
|00005340| 2d 2d 20 65 6e 64 20 46 | 69 6e 64 45 6e 67 69 6e |-- end F|indEngin|
|00005350| 65 0d 0d 0d 6f 6e 20 53 | 68 6f 77 4c 61 73 74 43 |e...on S|howLastC|
|00005360| 68 61 70 74 65 72 20 74 | 68 65 50 61 67 65 0d 67 |hapter t|hePage.g|
|00005370| 6c 6f 62 61 6c 20 67 4c | 61 73 74 43 68 61 70 74 |lobal gL|astChapt|
|00005380| 65 72 4e 61 6d 65 2c 67 | 4c 61 73 74 50 61 67 65 |erName,g|LastPage|
|00005390| 4e 75 6d 62 65 72 0d 69 | 66 20 67 4c 61 73 74 43 |Number.i|f gLastC|
|000053a0| 68 61 70 74 65 72 4e 61 | 6d 65 20 69 73 20 65 6d |hapterNa|me is em|
|000053b0| 70 74 79 20 74 68 65 6e | 20 65 78 69 74 20 53 68 |pty then| exit Sh|
|000053c0| 6f 77 4c 61 73 74 43 68 | 61 70 74 65 72 0d 70 75 |owLastCh|apter.pu|
|000053d0| 74 20 67 4c 61 73 74 50 | 61 67 65 4e 75 6d 62 65 |t gLastP|ageNumbe|
|000053e0| 72 20 69 6e 74 6f 20 62 | 67 20 66 6c 64 20 22 70 |r into b|g fld "p|
|000053f0| 61 67 65 22 20 6f 66 20 | 63 64 20 22 63 6f 6e 74 |age" of |cd "cont|
|00005400| 65 6e 74 73 22 0d 0d 2d | 2d 20 72 65 70 65 61 74 |ents"..-|- repeat|
|00005410| 20 77 69 74 68 20 6a 20 | 3d 20 31 20 74 6f 20 31 | with j |= 1 to 1|
|00005420| 30 30 0d 2d 2d 20 70 75 | 74 20 22 63 6f 6e 74 65 |00.-- pu|t "conte|
|00005430| 6e 74 73 22 26 26 6a 20 | 69 6e 74 6f 20 66 69 65 |nts"&&j |into fie|
|00005440| 6c 64 4e 61 6d 65 0d 2d | 2d 20 69 66 20 74 68 65 |ldName.-|- if the|
|00005450| 72 65 20 69 73 20 6e 6f | 74 20 61 20 62 67 20 66 |re is no|t a bg f|
|00005460| 6c 64 20 66 69 65 6c 64 | 4e 61 6d 65 20 6f 66 20 |ld field|Name of |
|00005470| 63 64 20 22 63 6f 6e 74 | 65 6e 74 73 22 20 74 68 |cd "cont|ents" th|
|00005480| 65 6e 20 65 78 69 74 20 | 72 65 70 65 61 74 0d 2d |en exit |repeat.-|
|00005490| 2d 20 67 65 74 20 62 67 | 20 66 6c 64 20 66 69 65 |- get bg| fld fie|
|000054a0| 6c 64 4e 61 6d 65 20 6f | 66 20 63 64 20 22 63 6f |ldName o|f cd "co|
|000054b0| 6e 74 65 6e 74 73 22 0d | 2d 2d 20 72 65 70 65 61 |ntents".|-- repea|
|000054c0| 74 20 77 69 74 68 20 69 | 20 3d 20 31 20 74 6f 20 |t with i| = 1 to |
|000054d0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 |the numb|er of li|
|000054e0| 6e 65 73 20 6f 66 20 69 | 74 0d 2d 2d 20 69 66 20 |nes of i|t.-- if |
|000054f0| 6c 69 6e 65 20 69 20 6f | 66 20 69 74 20 69 73 20 |line i o|f it is |
|00005500| 67 4c 61 73 74 43 68 61 | 70 74 65 72 4e 61 6d 65 |gLastCha|pterName|
|00005510| 20 74 68 65 6e 0d 2d 2d | 20 70 75 74 20 74 68 65 | then.--| put the|
|00005520| 20 74 65 78 74 48 65 69 | 67 68 74 20 6f 66 20 62 | textHei|ght of b|
|00005530| 67 20 66 6c 64 20 66 69 | 65 6c 64 4e 61 6d 65 20 |g fld fi|eldName |
|00005540| 6f 66 20 63 64 20 22 63 | 6f 6e 74 65 6e 74 73 22 |of cd "c|ontents"|
|00005550| 20 69 6e 74 6f 20 74 48 | 65 69 67 68 74 0d 2d 2d | into tH|eight.--|
|00005560| 20 70 75 74 20 28 74 68 | 65 20 74 6f 70 20 6f 66 | put (th|e top of|
|00005570| 20 62 67 20 66 6c 64 20 | 66 69 65 6c 64 4e 61 6d | bg fld |fieldNam|
|00005580| 65 20 6f 66 20 63 64 20 | 22 63 6f 6e 74 65 6e 74 |e of cd |"content|
|00005590| 73 22 29 20 2d 20 38 20 | 69 6e 74 6f 20 74 68 65 |s") - 8 |into the|
|000055a0| 54 6f 70 0d 2d 2d 20 70 | 75 74 20 28 74 68 65 20 |Top.-- p|ut (the |
|000055b0| 6c 65 66 74 20 6f 66 20 | 62 67 20 66 6c 64 20 66 |left of |bg fld f|
|000055c0| 69 65 6c 64 4e 61 6d 65 | 20 6f 66 20 63 64 20 22 |ieldName| of cd "|
|000055d0| 63 6f 6e 74 65 6e 74 73 | 22 29 20 2d 20 31 32 20 |contents|") - 12 |
|000055e0| 69 6e 74 6f 20 74 68 65 | 48 0d 2d 2d 20 70 75 74 |into the|H.-- put|
|000055f0| 20 28 69 20 2a 20 74 48 | 65 69 67 68 74 29 20 2b | (i * tH|eight) +|
|00005600| 20 74 68 65 54 6f 70 20 | 69 6e 74 6f 20 74 68 65 | theTop |into the|
|00005610| 56 0d 2d 2d 20 73 65 74 | 20 74 68 65 20 6c 6f 63 |V.-- set| the loc|
|00005620| 20 6f 66 20 62 67 20 62 | 74 6e 20 22 6c 61 73 74 | of bg b|tn "last|
|00005630| 70 61 67 65 22 20 6f 66 | 20 63 64 20 22 63 6f 6e |page" of| cd "con|
|00005640| 74 65 6e 74 73 22 20 74 | 6f 20 28 74 68 65 48 26 |tents" t|o (theH&|
|00005650| 22 2c 22 26 74 68 65 56 | 29 0d 2d 2d 20 65 78 69 |","&theV|).-- exi|
|00005660| 74 20 53 68 6f 77 4c 61 | 73 74 43 68 61 70 74 65 |t ShowLa|stChapte|
|00005670| 72 0d 2d 2d 20 65 6e 64 | 20 69 66 0d 2d 2d 20 65 |r.-- end| if.-- e|
|00005680| 6e 64 20 72 65 70 65 61 | 74 0d 2d 2d 20 65 6e 64 |nd repea|t.-- end|
|00005690| 20 72 65 70 65 61 74 0d | 65 6e 64 20 53 68 6f 77 | repeat.|end Show|
|000056a0| 4c 61 73 74 43 68 61 70 | 74 65 72 0d 0d 6f 6e 20 |LastChap|ter..on |
|000056b0| 54 75 72 6e 4f 66 66 42 | 75 74 74 6f 6e 48 65 6c |TurnOffB|uttonHel|
|000056c0| 70 0d 48 69 64 65 42 75 | 74 74 6f 6e 48 65 6c 70 |p.HideBu|ttonHelp|
|000056d0| 0d 67 65 74 20 44 69 73 | 70 6c 61 79 69 6e 67 48 |.get Dis|playingH|
|000056e0| 65 6c 70 28 66 61 6c 73 | 65 29 0d 65 6e 64 20 54 |elp(fals|e).end T|
|000056f0| 75 72 6e 4f 66 66 42 75 | 74 74 6f 6e 48 65 6c 70 |urnOffBu|ttonHelp|
|00005700| 0d 0d 6f 6e 20 48 69 64 | 65 42 75 74 74 6f 6e 48 |..on Hid|eButtonH|
|00005710| 65 6c 70 0d 70 75 74 20 | 74 68 65 20 73 65 6c 65 |elp.put |the sele|
|00005720| 63 74 65 64 43 68 75 6e | 6b 20 69 6e 74 6f 20 74 |ctedChun|k into t|
|00005730| 68 65 43 68 75 6e 6b 0d | 69 66 20 74 68 65 72 65 |heChunk.|if there|
|00005740| 20 69 73 20 61 20 62 67 | 20 66 6c 64 20 22 62 75 | is a bg| fld "bu|
|00005750| 74 74 6f 6e 20 68 65 6c | 70 22 20 74 68 65 6e 20 |tton hel|p" then |
|00005760| 68 69 64 65 20 62 67 20 | 66 6c 64 20 22 62 75 74 |hide bg |fld "but|
|00005770| 74 6f 6e 20 68 65 6c 70 | 22 0d 69 66 20 74 68 65 |ton help|".if the|
|00005780| 43 68 75 6e 6b 20 69 73 | 20 6e 6f 74 20 65 6d 70 |Chunk is| not emp|
|00005790| 74 79 20 74 68 65 6e 20 | 73 65 6c 65 63 74 20 74 |ty then |select t|
|000057a0| 68 65 43 68 75 6e 6b 0d | 65 6e 64 20 48 69 64 65 |heChunk.|end Hide|
|000057b0| 42 75 74 74 6f 6e 48 65 | 6c 70 0d 0d 6f 6e 20 42 |ButtonHe|lp..on B|
|000057c0| 75 74 74 6f 6e 48 65 6c | 70 20 74 68 65 42 75 74 |uttonHel|p theBut|
|000057d0| 74 6f 6e 2c 20 74 68 65 | 54 65 78 74 0d 69 66 20 |ton, the|Text.if |
|000057e0| 74 68 65 72 65 20 69 73 | 20 6e 6f 74 20 61 20 62 |there is| not a b|
|000057f0| 67 20 66 6c 64 20 22 62 | 75 74 74 6f 6e 20 68 65 |g fld "b|utton he|
|00005800| 6c 70 22 20 6f 72 20 c2 | 0d 74 68 65 72 65 20 69 |lp" or .|.there i|
|00005810| 73 20 6e 6f 74 20 61 20 | 62 67 20 62 74 6e 20 22 |s not a |bg btn "|
|00005820| 68 65 6c 70 20 6f 66 66 | 22 20 74 68 65 6e 20 65 |help off|" then e|
|00005830| 78 69 74 20 42 75 74 74 | 6f 6e 48 65 6c 70 0d 0d |xit Butt|onHelp..|
|00005840| 69 66 20 74 68 65 54 65 | 78 74 20 69 73 20 6e 6f |if theTe|xt is no|
|00005850| 74 20 65 6d 70 74 79 20 | 74 68 65 6e 0d 53 68 6f |t empty |then.Sho|
|00005860| 77 42 75 74 74 6f 6e 48 | 65 6c 70 20 74 68 65 54 |wButtonH|elp theT|
|00005870| 65 78 74 0d 65 78 69 74 | 20 42 75 74 74 6f 6e 48 |ext.exit| ButtonH|
|00005880| 65 6c 70 0d 65 6e 64 20 | 69 66 0d 0d 69 66 20 74 |elp.end |if..if t|
|00005890| 68 65 20 6f 70 74 69 6f | 6e 4b 65 79 20 69 73 20 |he optio|nKey is |
|000058a0| 64 6f 77 6e 20 61 6e 64 | 20 74 68 65 42 75 74 74 |down and| theButt|
|000058b0| 6f 6e 20 69 73 20 22 73 | 65 61 72 63 68 22 20 74 |on is "s|earch" t|
|000058c0| 68 65 6e 0d 53 68 6f 77 | 42 75 74 74 6f 6e 48 65 |hen.Show|ButtonHe|
|000058d0| 6c 70 20 22 2e 2e 2e 70 | 65 72 66 6f 72 6d 73 20 |lp "...p|erforms |
|000058e0| 74 68 65 20 73 61 6d 65 | 20 73 65 61 72 63 68 20 |the same| search |
|000058f0| 61 67 61 69 6e 2e 22 0d | 65 6c 73 65 20 69 66 20 |again.".|else if |
|00005900| 74 68 65 20 6f 70 74 69 | 6f 6e 4b 65 79 20 69 73 |the opti|onKey is|
|00005910| 20 64 6f 77 6e 20 61 6e | 64 20 74 68 65 42 75 74 | down an|d theBut|
|00005920| 74 6f 6e 20 69 73 20 22 | 47 6f 20 42 6f 6f 6b 4d |ton is "|Go BookM|
|00005930| 61 72 6b 22 20 74 68 65 | 6e 0d 53 68 6f 77 42 75 |ark" the|n.ShowBu|
|00005940| 74 74 6f 6e 48 65 6c 70 | 20 22 2e 2e 2e 20 73 68 |ttonHelp| "... sh|
|00005950| 6f 77 73 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |ows the |previous|
|00005960| 20 62 6f 6f 6b 6d 61 72 | 6b 2e 22 0d 65 6c 73 65 | bookmar|k.".else|
|00005970| 0d 69 66 20 74 68 65 42 | 75 74 74 6f 6e 20 69 73 |.if theB|utton is|
|00005980| 20 22 68 65 6c 70 20 6f | 66 66 22 20 74 68 65 6e | "help o|ff" then|
|00005990| 0d 69 66 20 44 69 73 70 | 6c 61 79 69 6e 67 48 65 |.if Disp|layingHe|
|000059a0| 6c 70 28 29 20 74 68 65 | 6e 0d 53 68 6f 77 42 75 |lp() the|n.ShowBu|
|000059b0| 74 74 6f 6e 48 65 6c 70 | 20 22 43 6c 69 63 6b 20 |ttonHelp| "Click |
|000059c0| 68 65 72 65 20 74 6f 20 | 74 75 72 6e 20 74 68 69 |here to |turn thi|
|000059d0| 73 20 68 65 6c 70 20 6f | 66 66 21 22 0d 65 6c 73 |s help o|ff!".els|
|000059e0| 65 20 53 68 6f 77 42 75 | 74 74 6f 6e 48 65 6c 70 |e ShowBu|ttonHelp|
|000059f0| 20 22 43 6c 69 63 6b 20 | 68 65 72 65 20 74 6f 20 | "Click |here to |
|00005a00| 74 75 72 6e 20 62 75 74 | 74 6f 6e 20 68 65 6c 70 |turn but|ton help|
|00005a10| 20 6f 6e 2e 22 2c 74 72 | 75 65 0d 65 6c 73 65 20 | on.",tr|ue.else |
|00005a20| 69 66 20 74 68 65 42 75 | 74 74 6f 6e 20 69 73 20 |if theBu|tton is |
|00005a30| 22 63 6f 6e 74 65 6e 74 | 73 22 20 74 68 65 6e 20 |"content|s" then |
|00005a40| 53 68 6f 77 42 75 74 74 | 6f 6e 48 65 6c 70 20 22 |ShowButt|onHelp "|
|00005a50| 53 68 6f 77 73 20 74 68 | 65 22 26 72 65 74 75 72 |Shows th|e"&retur|
|00005a60| 6e 26 22 74 61 62 6c 65 | 20 6f 66 20 63 6f 6e 74 |n&"table| of cont|
|00005a70| 65 6e 74 73 2e 22 0d 65 | 6c 73 65 20 69 66 20 74 |ents.".e|lse if t|
|00005a80| 68 65 42 75 74 74 6f 6e | 20 69 73 20 22 70 72 65 |heButton| is "pre|
|00005a90| 76 69 6f 75 73 20 61 72 | 74 69 63 6c 65 22 20 74 |vious ar|ticle" t|
|00005aa0| 68 65 6e 20 53 68 6f 77 | 42 75 74 74 6f 6e 48 65 |hen Show|ButtonHe|
|00005ab0| 6c 70 20 22 53 68 6f 77 | 73 20 74 68 65 20 70 72 |lp "Show|s the pr|
|00005ac0| 65 76 69 6f 75 73 20 63 | 68 61 70 74 65 72 2e 22 |evious c|hapter."|
|00005ad0| 0d 65 6c 73 65 20 69 66 | 20 74 68 65 42 75 74 74 |.else if| theButt|
|00005ae0| 6f 6e 20 69 73 20 22 70 | 72 65 76 69 6f 75 73 20 |on is "p|revious |
|00005af0| 70 61 67 65 22 20 74 68 | 65 6e 20 53 68 6f 77 42 |page" th|en ShowB|
|00005b00| 75 74 74 6f 6e 48 65 6c | 70 20 22 53 68 6f 77 73 |uttonHel|p "Shows|
|00005b10| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 70 61 | the pre|vious pa|
|00005b20| 67 65 2e 22 0d 65 6c 73 | 65 20 69 66 20 74 68 65 |ge.".els|e if the|
|00005b30| 42 75 74 74 6f 6e 20 69 | 73 20 22 6e 65 78 74 20 |Button i|s "next |
|00005b40| 70 61 67 65 22 20 74 68 | 65 6e 20 53 68 6f 77 42 |page" th|en ShowB|
|00005b50| 75 74 74 6f 6e 48 65 6c | 70 20 22 53 68 6f 77 73 |uttonHel|p "Shows|
|00005b60| 20 74 68 65 20 6e 65 78 | 74 20 22 26 72 65 74 75 | the nex|t "&retu|
|00005b70| 72 6e 26 22 70 61 67 65 | 2e 22 0d 65 6c 73 65 20 |rn&"page|.".else |
|00005b80| 69 66 20 74 68 65 42 75 | 74 74 6f 6e 20 69 73 20 |if theBu|tton is |
|00005b90| 22 6e 65 78 74 20 61 72 | 74 69 63 6c 65 22 20 74 |"next ar|ticle" t|
|00005ba0| 68 65 6e 20 53 68 6f 77 | 42 75 74 74 6f 6e 48 65 |hen Show|ButtonHe|
|00005bb0| 6c 70 20 22 53 68 6f 77 | 73 20 74 68 65 20 6e 65 |lp "Show|s the ne|
|00005bc0| 78 74 20 63 68 61 70 74 | 65 72 2e 22 0d 65 6c 73 |xt chapt|er.".els|
|00005bd0| 65 20 69 66 20 74 68 65 | 42 75 74 74 6f 6e 20 69 |e if the|Button i|
|00005be0| 73 20 22 53 68 6f 77 4e | 6f 74 65 73 22 20 74 68 |s "ShowN|otes" th|
|00005bf0| 65 6e 20 53 68 6f 77 42 | 75 74 74 6f 6e 48 65 6c |en ShowB|uttonHel|
|00005c00| 70 20 22 53 68 6f 77 73 | 20 74 68 65 20 6e 6f 74 |p "Shows| the not|
|00005c10| 65 73 20 73 65 63 74 69 | 6f 6e 20 6f 66 20 74 68 |es secti|on of th|
|00005c20| 65 20 62 6f 6f 6b 2e 22 | 0d 65 6c 73 65 20 69 66 |e book."|.else if|
|00005c30| 20 74 68 65 42 75 74 74 | 6f 6e 20 69 73 20 22 48 | theButt|on is "H|
|00005c40| 69 64 65 4e 6f 74 65 73 | 22 20 74 68 65 6e 20 53 |ideNotes|" then S|
|00005c50| 68 6f 77 42 75 74 74 6f | 6e 48 65 6c 70 20 22 48 |howButto|nHelp "H|
|00005c60| 69 64 65 73 20 74 68 65 | 20 6e 6f 74 65 73 20 73 |ides the| notes s|
|00005c70| 65 63 74 69 6f 6e 20 6f | 66 20 74 68 65 20 62 6f |ection o|f the bo|
|00005c80| 6f 6b 2e 22 0d 65 6c 73 | 65 20 69 66 20 74 68 65 |ok.".els|e if the|
|00005c90| 42 75 74 74 6f 6e 20 69 | 73 20 22 73 65 61 72 63 |Button i|s "searc|
|00005ca0| 68 22 20 74 68 65 6e 20 | 53 68 6f 77 42 75 74 74 |h" then |ShowButt|
|00005cb0| 6f 6e 48 65 6c 70 20 22 | 4c 65 74 73 20 79 6f 75 |onHelp "|Lets you|
|00005cc0| 20 73 65 61 72 63 68 20 | 66 6f 72 20 74 65 78 74 | search |for text|
|00005cd0| 2e 20 20 4f 70 74 69 6f | 6e 20 6b 65 79 2e 2e 2e |. Optio|n key...|
|00005ce0| 22 0d 65 6c 73 65 20 69 | 66 20 74 68 65 42 75 74 |".else i|f theBut|
|00005cf0| 74 6f 6e 20 69 73 20 22 | 47 6f 20 42 6f 6f 6b 4d |ton is "|Go BookM|
|00005d00| 61 72 6b 22 20 74 68 65 | 6e 20 53 68 6f 77 42 75 |ark" the|n ShowBu|
|00005d10| 74 74 6f 6e 48 65 6c 70 | 20 22 53 68 6f 77 73 20 |ttonHelp| "Shows |
|00005d20| 74 68 65 20 6e 65 78 74 | 20 62 6f 6f 6b 6d 61 72 |the next| bookmar|
|00005d30| 6b 2c 20 6f 70 74 69 6f | 6e 2e 2e 2e 22 0d 65 6c |k, optio|n...".el|
|00005d40| 73 65 20 69 66 20 74 68 | 65 42 75 74 74 6f 6e 20 |se if th|eButton |
|00005d50| 69 73 20 22 42 6f 6f 6b | 4d 61 72 6b 22 20 74 68 |is "Book|Mark" th|
|00005d60| 65 6e 0d 69 66 20 74 68 | 65 20 6d 61 72 6b 65 64 |en.if th|e marked|
|00005d70| 20 6f 66 20 74 68 69 73 | 20 63 61 72 64 20 74 68 | of this| card th|
|00005d80| 65 6e 0d 53 68 6f 77 42 | 75 74 74 6f 6e 48 65 6c |en.ShowB|uttonHel|
|00005d90| 70 20 22 43 6c 65 61 72 | 73 20 74 68 65 20 62 6f |p "Clear|s the bo|
|00005da0| 6f 6b 6d 61 72 6b 20 73 | 65 74 20 6f 6e 20 74 68 |okmark s|et on th|
|00005db0| 69 73 20 70 61 67 65 2e | 22 0d 65 6c 73 65 20 53 |is page.|".else S|
|00005dc0| 68 6f 77 42 75 74 74 6f | 6e 48 65 6c 70 20 22 53 |howButto|nHelp "S|
|00005dd0| 65 74 73 20 61 20 62 6f | 6f 6b 6d 61 72 6b 20 6f |ets a bo|okmark o|
|00005de0| 6e 20 74 68 69 73 20 70 | 61 67 65 2e 22 0d 65 6c |n this p|age.".el|
|00005df0| 73 65 20 69 66 20 74 68 | 65 42 75 74 74 6f 6e 20 |se if th|eButton |
|00005e00| 69 73 20 22 4d 61 72 6b | 20 54 65 78 74 22 20 74 |is "Mark| Text" t|
|00005e10| 68 65 6e 0d 69 66 20 74 | 68 65 20 73 65 6c 65 63 |hen.if t|he selec|
|00005e20| 74 69 6f 6e 20 69 73 20 | 65 6d 70 74 79 20 74 68 |tion is |empty th|
|00005e30| 65 6e 0d 53 68 6f 77 42 | 75 74 74 6f 6e 48 65 6c |en.ShowB|uttonHel|
|00005e40| 70 20 22 53 65 6c 65 63 | 74 20 74 65 78 74 20 61 |p "Selec|t text a|
|00005e50| 6e 64 20 63 6c 69 63 6b | 20 68 65 72 65 20 74 6f |nd click| here to|
|00005e60| 20 75 6e 64 65 72 6c 69 | 6e 65 20 69 74 2e 22 0d | underli|ne it.".|
|00005e70| 65 6c 73 65 20 69 66 20 | 74 68 65 20 74 65 78 74 |else if |the text|
|00005e80| 53 74 79 6c 65 20 6f 66 | 20 74 68 65 20 73 65 6c |Style of| the sel|
|00005e90| 65 63 74 65 64 43 68 75 | 6e 6b 20 69 73 20 22 75 |ectedChu|nk is "u|
|00005ea0| 6e 64 65 72 6c 69 6e 65 | 22 20 74 68 65 6e 0d 53 |nderline|" then.S|
|00005eb0| 68 6f 77 42 75 74 74 6f | 6e 48 65 6c 70 20 22 43 |howButto|nHelp "C|
|00005ec0| 6c 65 61 72 73 20 75 6e | 64 65 72 6c 69 6e 65 20 |lears un|derline |
|00005ed0| 66 72 6f 6d 20 73 65 6c | 65 63 74 65 64 20 74 65 |from sel|ected te|
|00005ee0| 78 74 2e 22 0d 65 6c 73 | 65 0d 53 68 6f 77 42 75 |xt.".els|e.ShowBu|
|00005ef0| 74 74 6f 6e 48 65 6c 70 | 20 22 55 6e 64 65 72 6c |ttonHelp| "Underl|
|00005f00| 69 6e 65 73 20 63 75 72 | 72 65 6e 74 6c 79 20 73 |ines cur|rently s|
|00005f10| 65 6c 65 63 74 65 64 20 | 74 65 78 74 2e 22 0d 65 |elected |text.".e|
|00005f20| 6e 64 20 69 66 0d 65 6c | 73 65 20 69 66 20 74 68 |nd if.el|se if th|
|00005f30| 65 42 75 74 74 6f 6e 20 | 69 73 20 22 6c 61 73 74 |eButton |is "last|
|00005f40| 70 61 67 65 22 20 74 68 | 65 6e 0d 53 68 6f 77 42 |page" th|en.ShowB|
|00005f50| 75 74 74 6f 6e 48 65 6c | 70 20 22 53 68 6f 77 73 |uttonHel|p "Shows|
|00005f60| 20 74 68 65 20 6c 61 73 | 74 20 70 61 67 65 20 79 | the las|t page y|
|00005f70| 6f 75 20 68 61 76 65 20 | 73 65 65 6e 2e 22 0d 65 |ou have |seen.".e|
|00005f80| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 65 6e 64 |nd if.en|d if.end|
|00005f90| 20 42 75 74 74 6f 6e 48 | 65 6c 70 0d 0d 6f 6e 20 | ButtonH|elp..on |
|00005fa0| 53 68 6f 77 42 75 74 74 | 6f 6e 48 65 6c 70 20 74 |ShowButt|onHelp t|
|00005fb0| 68 65 54 65 78 74 2c 66 | 6f 72 63 65 53 68 6f 77 |heText,f|orceShow|
|00005fc0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 74 |.if ther|e is not|
|00005fd0| 20 61 20 62 67 20 66 6c | 64 20 22 62 75 74 74 6f | a bg fl|d "butto|
|00005fe0| 6e 20 68 65 6c 70 22 20 | 6f 72 20 c2 0d 74 68 65 |n help" |or ..the|
|00005ff0| 72 65 20 69 73 20 6e 6f | 74 20 61 20 62 67 20 62 |re is no|t a bg b|
|00006000| 74 6e 20 22 68 65 6c 70 | 20 6f 66 66 22 20 74 68 |tn "help| off" th|
|00006010| 65 6e 20 65 78 69 74 20 | 53 68 6f 77 42 75 74 74 |en exit |ShowButt|
|00006020| 6f 6e 48 65 6c 70 0d 0d | 69 66 20 66 6f 72 63 65 |onHelp..|if force|
|00006030| 53 68 6f 77 20 69 73 20 | 74 72 75 65 20 6f 72 20 |Show is |true or |
|00006040| 44 69 73 70 6c 61 79 69 | 6e 67 48 65 6c 70 28 29 |Displayi|ngHelp()|
|00006050| 20 74 68 65 6e 0d 70 75 | 74 20 74 68 65 20 73 65 | then.pu|t the se|
|00006060| 6c 65 63 74 65 64 63 68 | 75 6e 6b 20 69 6e 74 6f |lectedch|unk into|
|00006070| 20 74 68 65 43 68 75 6e | 6b 0d 70 75 74 20 74 68 | theChun|k.put th|
|00006080| 65 54 65 78 74 20 69 6e | 74 6f 20 62 67 20 66 6c |eText in|to bg fl|
|00006090| 64 20 22 62 75 74 74 6f | 6e 20 68 65 6c 70 22 0d |d "butto|n help".|
|000060a0| 73 68 6f 77 20 62 67 20 | 66 6c 64 20 22 62 75 74 |show bg |fld "but|
|000060b0| 74 6f 6e 20 68 65 6c 70 | 22 0d 69 66 20 74 68 65 |ton help|".if the|
|000060c0| 43 68 75 6e 6b 20 69 73 | 20 6e 6f 74 20 65 6d 70 |Chunk is| not emp|
|000060d0| 74 79 20 74 68 65 6e 20 | 73 65 6c 65 63 74 20 74 |ty then |select t|
|000060e0| 68 65 43 68 75 6e 6b 0d | 65 6e 64 20 69 66 0d 65 |heChunk.|end if.e|
|000060f0| 6e 64 20 53 68 6f 77 42 | 75 74 74 6f 6e 48 65 6c |nd ShowB|uttonHel|
|00006100| 70 0d 0d 46 55 4e 43 54 | 49 4f 4e 20 44 69 73 70 |p..FUNCT|ION Disp|
|00006110| 6c 61 79 69 6e 67 48 65 | 6c 70 20 74 68 65 53 74 |layingHe|lp theSt|
|00006120| 61 74 65 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |ate.if t|here is |
|00006130| 6e 6f 74 20 61 20 62 67 | 20 62 74 6e 20 22 68 65 |not a bg| btn "he|
|00006140| 6c 70 20 6f 66 66 22 20 | 74 68 65 6e 20 72 65 74 |lp off" |then ret|
|00006150| 75 72 6e 20 66 61 6c 73 | 65 0d 69 66 20 74 68 65 |urn fals|e.if the|
|00006160| 53 74 61 74 65 20 69 73 | 20 6e 6f 74 20 65 6d 70 |State is| not emp|
|00006170| 74 79 20 74 68 65 6e 0d | 69 66 20 74 68 65 53 74 |ty then.|if theSt|
|00006180| 61 74 65 20 74 68 65 6e | 20 73 65 74 20 74 68 65 |ate then| set the|
|00006190| 20 69 63 6f 6e 20 6f 66 | 20 62 67 20 62 74 6e 20 | icon of| bg btn |
|000061a0| 22 68 65 6c 70 20 6f 66 | 66 22 20 74 6f 20 31 32 |"help of|f" to 12|
|000061b0| 33 37 39 0d 65 6c 73 65 | 20 73 65 74 20 74 68 65 |379.else| set the|
|000061c0| 20 69 63 6f 6e 20 6f 66 | 20 62 67 20 62 74 6e 20 | icon of| bg btn |
|000061d0| 22 68 65 6c 70 20 6f 66 | 66 22 20 74 6f 20 31 32 |"help of|f" to 12|
|000061e0| 33 37 38 0d 65 6e 64 20 | 69 66 0d 72 65 74 75 72 |378.end |if.retur|
|000061f0| 6e 20 74 68 65 20 69 63 | 6f 6e 20 6f 66 20 62 67 |n the ic|on of bg|
|00006200| 20 62 74 6e 20 22 68 65 | 6c 70 20 6f 66 66 22 20 | btn "he|lp off" |
|00006210| 69 73 20 31 32 33 37 39 | 0d 65 6e 64 20 44 69 73 |is 12379|.end Dis|
|00006220| 70 6c 61 79 69 6e 67 48 | 65 6c 70 0d 0d 6f 6e 20 |playingH|elp..on |
|00006230| 54 6f 67 67 6c 65 48 65 | 6c 70 4f 66 66 42 75 74 |ToggleHe|lpOffBut|
|00006240| 74 6f 6e 0d 70 75 74 20 | 44 69 73 70 6c 61 79 69 |ton.put |Displayi|
|00006250| 6e 67 48 65 6c 70 28 6e | 6f 74 20 44 69 73 70 6c |ngHelp(n|ot Displ|
|00006260| 61 79 69 6e 67 48 65 6c | 70 20 28 29 29 20 69 6e |ayingHel|p ()) in|
|00006270| 74 6f 20 68 65 6c 70 49 | 73 4e 6f 77 4f 6e 0d 0d |to helpI|sNowOn..|
|00006280| 69 66 20 74 68 65 20 6d | 6f 75 73 65 4c 6f 63 20 |if the m|ouseLoc |
|00006290| 69 73 20 6e 6f 74 20 77 | 69 74 68 69 6e 20 74 68 |is not w|ithin th|
|000062a0| 65 20 72 65 63 74 20 6f | 66 20 62 67 20 62 74 6e |e rect o|f bg btn|
|000062b0| 20 22 48 65 6c 70 22 20 | 74 68 65 6e 20 65 78 69 | "Help" |then exi|
|000062c0| 74 20 54 6f 67 67 6c 65 | 48 65 6c 70 4f 66 66 42 |t Toggle|HelpOffB|
|000062d0| 75 74 74 6f 6e 0d 0d 69 | 66 20 68 65 6c 70 49 73 |utton..i|f helpIs|
|000062e0| 4e 6f 77 4f 6e 20 74 68 | 65 6e 0d 42 75 74 74 6f |NowOn th|en.Butto|
|000062f0| 6e 48 65 6c 70 20 2c 22 | 4d 6f 76 65 20 74 68 65 |nHelp ,"|Move the|
|00006300| 20 6d 6f 75 73 65 20 74 | 6f 20 74 68 65 20 6c 65 | mouse t|o the le|
|00006310| 66 74 20 66 6f 72 20 68 | 65 6c 70 2e 22 0d 69 66 |ft for h|elp.".if|
|00006320| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 20 69 | the sel|ection i|
|00006330| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 0d 77 61 69 |s empty |then.wai|
|00006340| 74 20 32 20 73 65 63 6f | 6e 64 73 0d 65 6e 64 20 |t 2 seco|nds.end |
|00006350| 69 66 0d 65 6c 73 65 20 | 20 42 75 74 74 6f 6e 48 |if.else | ButtonH|
|00006360| 65 6c 70 20 22 68 65 6c | 70 20 6f 66 66 22 0d 65 |elp "hel|p off".e|
|00006370| 6e 64 20 54 6f 67 67 6c | 65 48 65 6c 70 4f 66 66 |nd Toggl|eHelpOff|
|00006380| 42 75 74 74 6f 6e 0d 0d | 46 55 4e 43 54 49 4f 4e |Button..|FUNCTION|
|00006390| 20 53 74 61 63 6b 4c 6f | 63 6b 65 64 0d 72 65 74 | StackLo|cked.ret|
|000063a0| 75 72 6e 20 74 68 65 20 | 63 61 6e 74 6d 6f 64 69 |urn the |cantmodi|
|000063b0| 66 79 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |fy of th|is stack|
|000063c0| 0d 65 6e 64 20 53 74 61 | 63 6b 4c 6f 63 6b 65 64 |.end Sta|ckLocked|
|000063d0| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 77 68 69 63 68 |..functi|on which|
|000063e0| 4c 69 6e 65 20 74 68 65 | 46 69 65 6c 64 0d 70 75 |Line the|Field.pu|
|000063f0| 74 20 77 6f 72 64 20 34 | 20 6f 66 20 74 68 65 20 |t word 4| of the |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.